2023-04-20 17:40:14 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
parameters {
|
|
|
|
buildSelector(
|
|
|
|
name: 'BUILD_SELECTOR',
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
defaultSelector: lastSuccessful()
|
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Git Checkout') {
|
|
|
|
steps {
|
2023-04-20 18:08:06 +02:00
|
|
|
git 'https://git.wmi.amu.edu.pl/s360792/ium_z360792.git'
|
2023-04-20 17:40:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Copy Artifacts') {
|
|
|
|
steps {
|
|
|
|
copyArtifacts(
|
|
|
|
fingerprintArtifacts: true,
|
2023-04-20 17:56:54 +02:00
|
|
|
projectName: 'z-s360792-create-dataset',
|
2023-04-20 18:05:43 +02:00
|
|
|
selector: buildParameter('BUILD_SELECTOR')
|
2023-04-20 17:40:14 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Run Shell Script') {
|
|
|
|
steps {
|
|
|
|
sh 'chmod +x stats.sh'
|
|
|
|
sh './stats.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Archive Artifacts') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts artifacts: 'results.txt', onlyIfSuccessful: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|