Skip to content

Commit

Permalink
fix(ci)_: skip windows build cleanup stage
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
mendelskiv93 authored and jakubgs committed Oct 29, 2024
1 parent 807397f commit 7c9a9ca
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions _assets/ci/Jenkinsfile.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,14 @@ pipeline {
}
}
}
stage('Cleanup') {
steps {
script {
cleanTmp()
}
}
}
} // stages
post {
success { script { github.notifyPR(true) } }
failure { script { github.notifyPR(false) } }
cleanup { cleanWs() }
cleanup {
cleanWs()
cleanTmp()
}
} // post
} // pipeline

Expand Down Expand Up @@ -158,9 +154,7 @@ def shell(cmd) {
}

def cleanTmp() {
if (env.PLATFORM == 'windows') {
sh "rm -rf ${env.WORKSPACE}@tmp"
} else {
if (env.PLATFORM != 'windows') {
dir("${env.WORKSPACE}@tmp") { deleteDir() }
}
}
}

0 comments on commit 7c9a9ca

Please sign in to comment.