Add Jenkinsfile to branch
oginstaller/pipeline/head There was a failure building this commit Details

user-story-905
Nicolas Arenas 2024-10-29 10:33:30 +01:00
parent 59577c48af
commit bd1c61dff9
1 changed files with 20 additions and 0 deletions

20
Jenkinsfile vendored 100644
View File

@ -0,0 +1,20 @@
pipeline {
agent {
label 'ogAdministrator'
}
stages {
stage('Build') {
steps {
sh "echo root > root_passwd"
sh 'docker run --privileged -v /dev:/dev -v /run:/run -v $(pwd):/installer -w /installer --rm opengnsys/oginstallerbuilder ./builder.sh'
}
}
stage ('Upload Image to NFS')
{
steps {
sh "cp ubuntu-from-scratch.iso /mnt/srv/artefactos/oginstaller/oginstaller-${BRANCH_NAME}_${BUILD_NUMBER}.iso"
}
}
}
}