ium_464937/Jenkinsfile-stats

33 lines
988 B
Plaintext
Raw Permalink Normal View History

2024-03-26 19:54:59 +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 {
git branch: "main", url: "https://git.wmi.amu.edu.pl/s464937/ium_464937"
}
}
stage('Copy Artifact') {
steps {
withEnv(["BUILD_SELECTOR=${params.BUILD_SELECTOR}" ]) {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464937-create-dataset', selector: buildParameter('$BUILD_SELECTOR')}
}
}
stage('Print stats') {
steps {
script {
sh "bash ./script2.sh"
}
}
}
stage('Archive Results') {
steps {
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
}
}
2024-03-26 19:55:55 +01:00
}
}