Try building in paralell

This commit is contained in:
2021-02-19 04:01:20 +01:00
parent 810d1de213
commit ae3ae05d29
2 changed files with 69 additions and 1 deletions

3
Jenkinsfile vendored
View File

@@ -43,8 +43,9 @@ pipeline {
}
// all the stages here will run in parallel
stages {
stage('Build ${$ImgRelease} - ${ImgVariant}') {
stage('Build image') {
steps {
echo "Do Build for ${$ImgRelease} - ${ImgVariant}"
// Build script
sh '''sudo $WORKSPACE/distrobuilder build-lxc Alpine.yaml $WORKSPACE/REL/$ImgRelease-$ImgVariant/ -o image.release=$ImgRelease -o image.variant=$ImgVariant
sudo chown jenkins:jenkins -R $WORKSPACE/REL