Added cleanup at start

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

5
Jenkinsfile vendored
View File

@@ -1,11 +1,16 @@
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 {
// Cleanup before starting
cleanWs()
// Checkout the repository
checkout scm
// Get distrobuilder // Get distrobuilder
copyArtifacts filter: 'bin/distrobuilder', fingerprintArtifacts: true, flatten: true, projectName: '/Public/DistroBuilder/BuildConfig=BrampCustom', selector: lastSuccessful() copyArtifacts filter: 'bin/distrobuilder', fingerprintArtifacts: true, flatten: true, projectName: '/Public/DistroBuilder/BuildConfig=BrampCustom', selector: lastSuccessful()
// Setup Env // Setup Env