From bd1c61dff9b3762d34665f98c37a4cfb737795cf Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Tue, 29 Oct 2024 10:33:30 +0100 Subject: [PATCH] Add Jenkinsfile to branch --- Jenkinsfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..0d30598 --- /dev/null +++ b/Jenkinsfile @@ -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" + } + } + } +} +