ium_464979/Jenkinsfile-stats
AWieczarek 0af0bea801 IUM_04
2024-04-02 22:12:47 +02:00

43 lines
1.1 KiB
Plaintext

pipeline {
agent {
docker {
image 'adamwie123691/ium:1.1'
}
}
parameters {
buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
}
stages {
stage('Clone Repository') {
steps {
git url: "https://git.wmi.amu.edu.pl/s464979/ium_464979"
}
}
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 {
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
}
}
}
// post {
// always {
// deleteDir()
// }
// }
}