39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
pipeline {
|
|
agent any
|
|
parameters {
|
|
buildSelector(
|
|
name: 'BUILD_SELECTOR',
|
|
description: 'Which build to use for copying artifacts',
|
|
defaultSelector: lastSuccessful()
|
|
)
|
|
}
|
|
stages {
|
|
stage('Checkout git clone') {
|
|
steps {
|
|
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487175/ium_z487175.git'
|
|
}
|
|
}
|
|
stage('Copy dataset artifacts') {
|
|
steps {
|
|
copyArtifacts(
|
|
projectName: 'z-s487175-create-dataset',
|
|
fingerprintArtifacts: true,
|
|
selector: buildParameter('BUILD_SELECTOR')
|
|
)
|
|
}
|
|
}
|
|
stage('Shell Script') {
|
|
steps {
|
|
// Stats
|
|
sh 'chmod +x s487175-dataset-stats-script.sh'
|
|
// Run script
|
|
sh './s487175-dataset-stats-script.sh > output.txt'
|
|
}
|
|
}
|
|
stage('Archive file') {
|
|
steps {
|
|
archiveArtifacts artifacts: 'output.txt', fingerprint: true
|
|
}
|
|
}
|
|
}
|
|
} |