ium_434760/Jenkinsfile-stat
2021-03-29 00:00:44 +02:00

36 lines
969 B
Plaintext

pipeline {
agent any
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'WHICH_BUILD'
)
}
stages {
stage('checkout: Check out from version control') {
steps {
git 'https://git.wmi.amu.edu.pl/s434760/ium_434760.git'
}
}
stage('copy artifacts')
{
steps
{
copyArtifacts(fingerprintArtifacts: true, projectName: 's434760-create-dataset', selector: buildParameter('WHICH_BUILD'))
}
}
stage('sh: Shell Script')
{
steps {
sh "chmod 777 ./script_stat.sh"
sh './script_stat.sh'
}
}
stage('archive artifacts') {
steps {
archiveArtifacts 'stat.txt'
}
}
}
}