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