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',
name: 'BUILD_SELECTOR')
])])
stage('Clone repository') {
steps {
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')
stages {
stage('Clone repository') {
steps {
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487176/ium_487176'
}
}
}
stage('Run script') {
steps {
sh 'sh datastats.sh'
}
post {
always {
archiveArtifacts artifacts: 'stats.txt', allowEmptyArchive: true
stage('Copy Artifacts') {
steps {
script {
projectName: 'z-s487176-create-dataset',
fingerprintArtifacts: true,
selector: buildParameter('BUILD_SELECTOR')
}
}
}
}
stage('Run script') {
steps {
sh 'sh datastats.sh'
}
post {
always {
archiveArtifacts artifacts: 'stats.txt', allowEmptyArchive: true
}
}
}
}
}
}