diff --git a/Jenkinsfile-SquentialBCK b/Jenkinsfile-SquentialBCK deleted file mode 100644 index fb543b7..0000000 --- a/Jenkinsfile-SquentialBCK +++ /dev/null @@ -1,53 +0,0 @@ -pipeline { - agent { label 'LXCBuilder' } - options { - skipDefaultCheckout() - buildDiscarder(logRotator(numToKeepStr: '2', artifactNumToKeepStr: '1')) - } - stages { - stage('Prepare') { - steps { - // Cleanup before starting - cleanWs() - // Checkout the repository - checkout scm - // Get distrobuilder - copyArtifacts filter: 'bin/distrobuilder', fingerprintArtifacts: true, flatten: true, projectName: '/Public/DistroBuilder/BuildConfig=BrampCustom', selector: lastSuccessful() - // Setup Env - sh '''mkdir $WORKSPACE/REL''' - } - } - stage('Build image 3.13,default') { - steps { - // Build script - sh '''sudo $WORKSPACE/distrobuilder build-lxc Alpine.yaml $WORKSPACE/REL/3.13-default/ -o image.release=3.13 -o image.variant=default - sudo chown jenkins:jenkins -R $WORKSPACE/REL - ''' - } - } - stage('Build image; 3.13,extended') { - steps { - // Build script - sh '''sudo $WORKSPACE/distrobuilder build-lxc Alpine.yaml $WORKSPACE/REL/3.13-extended/ -o image.release=3.13 -o image.variant=extended - sudo chown jenkins:jenkins -R $WORKSPACE/REL - ''' - } - } - stage('Build image: edge,default') { - steps { - // Build script - sh '''sudo $WORKSPACE/distrobuilder build-lxc Alpine.yaml $WORKSPACE/REL/edge-default/ -o image.release=edge -o image.variant=default - sudo chown jenkins:jenkins -R $WORKSPACE/REL - ''' - } - } - stage('Finish') { - steps { - // Save generated files - archiveArtifacts artifacts: 'REL/**', followSymlinks: false - // Cleaning WorkSpace - //cleanWs() - } - } - } -} \ No newline at end of file diff --git a/script-if_step-When.groovy b/script-if_step-When.groovy deleted file mode 100644 index 36fe8e9..0000000 --- a/script-if_step-When.groovy +++ /dev/null @@ -1,32 +0,0 @@ -when { - anyOf { - allOf { - expression { return (env.ImgVariant).startsWith('Default-') } - environment name: 'BuildDefault', value: 'true' - } - allOf { - expression { return (env.ImgVariant).startsWith('Extra-') } - environment name: 'BuildExtra', value: 'true' - } - } -} - - -stage('Build Check') { - steps { - script { - if (env.BuildDefault == 'true' && (env.ImgVariant).startsWith('Default-')) { - echo 'Building Default' - BuildThisLocal = true - } else if (env.BuildExtra == 'true' && (env.ImgVariant).startsWith('Extra-')) { - BuildThisLocal = true - echo 'Building Extra' - } else { - BuildThisLocal = false - echo 'not building' - } - env.BuildThis = BuildThisLocal - } - - } -} \ No newline at end of file