ium_444421/Jenkinsfile2

25 lines
753 B
Plaintext
Raw Normal View History

2022-03-26 19:29:43 +01:00
pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Check out from version control') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444421', url: 'https://git.wmi.amu.edu.pl/s444421/ium_444421.git']]])
}
}
stage('Shell Script') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName:'s444421-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh 'chmod u+x ./get_stats.sh'
sh './get_stats.sh'
archiveArtifacts 'stats.txt'
}
}
}
}