Removed Snipit and backup of old SQT version
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user