2022-03-28 01:14:06 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2022-03-28 01:18:43 +02:00
|
|
|
parameters {
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR'
|
|
|
|
)
|
|
|
|
}
|
2022-03-28 01:14:06 +02:00
|
|
|
stages {
|
|
|
|
stage('Checkout') {
|
|
|
|
steps {
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's470623', url: 'https://git.wmi.amu.edu.pl/s470623/ium_470623.git']]])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Copy artifacts') {
|
|
|
|
steps {
|
2022-03-28 01:18:43 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's470623-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
2022-03-28 01:14:06 +02:00
|
|
|
sh 'chmod u+x ./stats.sh'
|
|
|
|
sh './stats.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'stats.txt'
|
|
|
|
}
|
2022-03-28 01:15:15 +02:00
|
|
|
}
|
2022-03-28 01:14:06 +02:00
|
|
|
}
|
|
|
|
}
|