Added cleanup at start

This commit is contained in:
2021-02-19 03:32:37 +01:00
parent e4f0b8f7c5
commit 5b4768ce48

13
Jenkinsfile vendored
View File

@@ -1,15 +1,20 @@
pipeline {
agent { label 'LXCBuilder' }
options {
skipDefaultCheckout()
buildDiscarder(logRotator(numToKeepStr: '2', artifactNumToKeepStr: '1'))
}
stages {
stage('Prepare') {
steps {
// Get distrobuilder
copyArtifacts filter: 'bin/distrobuilder', fingerprintArtifacts: true, flatten: true, projectName: '/Public/DistroBuilder/BuildConfig=BrampCustom', selector: lastSuccessful()
// Setup Env
mkdir $WORKSPACE/REL
// 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
mkdir $WORKSPACE/REL
}
}
stage("Image Configs") {