ium_464979/Jenkinsfile-stats

39 lines
1.0 KiB
Plaintext
Raw Normal View History

2024-03-24 18:54:40 +01:00
pipeline {
agent any
parameters {
buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
}
stages {
stage('Clone Repository') {
steps {
2024-03-24 19:10:02 +01:00
git url: "https://git.wmi.amu.edu.pl/s464979/ium_464979"
2024-03-24 18:54:40 +01:00
}
}
stage('Copy Artifact') {
steps {
withEnv(["BUILD_SELECTOR=${params.BUILD_SELECTOR}" ]) {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464979-create-dataset', selector: buildParameter('$BUILD_SELECTOR')}
}
}
stage('Execute Shell Script') {
steps {
script {
sh "bash ./dataset_stats.sh"
}
}
}
stage('Archive Results') {
steps {
2024-03-24 19:02:45 +01:00
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
2024-03-24 18:54:40 +01:00
}
}
}
// post {
// always {
// deleteDir()
// }
// }
}