ium_444501/Jenkinsfile2

29 lines
748 B
Plaintext
Raw Normal View History

2022-03-27 21:39:18 +02: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: 's444501', url: 'https://git.wmi.amu.edu.pl/s444501/ium_444501.git']]])
}
}
stage('Shell Script') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444501-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh 'chmod u+x ./stats.sh'
sh './stats.sh'
archiveArtifacts 'stats.txt'
2022-03-27 21:45:22 +02:00
}
}
}
2022-03-27 21:39:18 +02:00
}