hopefully fixed jenkinsfile

This commit is contained in:
Maciej Tyczynski 2023-04-19 18:46:03 +02:00
parent 822bb53727
commit 88b9eed8fd

View File

@ -6,33 +6,33 @@ pipeline {
description: 'Which build to use for copying artifacts', description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR') name: 'BUILD_SELECTOR')
])]) ])])
stages {
stage('Clone repository') { stage('Clone repository') {
steps { steps {
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487176/ium_487176' git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487176/ium_487176'
}
}
stage('Copy Artifacts') {
steps {
script {
projectName: 'z-s487176-create-dataset',
fingerprintArtifacts: true,
selector: buildParameter('BUILD_SELECTOR')
} }
} }
} stage('Copy Artifacts') {
steps {
stage('Run script') { script {
steps { projectName: 'z-s487176-create-dataset',
sh 'sh datastats.sh' fingerprintArtifacts: true,
} selector: buildParameter('BUILD_SELECTOR')
post { }
always {
archiveArtifacts artifacts: 'stats.txt', allowEmptyArchive: true
} }
} }
stage('Run script') {
steps {
sh 'sh datastats.sh'
}
post {
always {
archiveArtifacts artifacts: 'stats.txt', allowEmptyArchive: true
}
}
}
} }
} }
} }