2024-03-26 21:15:11 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
parameters {
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR')
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Checkout') {
|
|
|
|
steps {
|
|
|
|
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s464915/ium_464915.git'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Copy Artifacts') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464915-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Execute Script') {
|
|
|
|
steps {
|
2024-03-26 21:47:05 +01:00
|
|
|
sh 'bash ./calculate.sh'
|
2024-03-26 21:15:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Archive Results') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|