ium_478831/Jenkinsfile2

31 lines
774 B
Plaintext
Raw Permalink Normal View History

2022-03-27 21:21:33 +02:00
pipeline {
2022-04-03 21:07:56 +02:00
agent {
2022-04-03 21:20:12 +02:00
docker { image 'ium-478831' }
2022-04-03 21:07:56 +02:00
}
2022-03-27 21:21:33 +02:00
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
name: 's478831-create-dataset',
description: 'Which build to use for copying artifacts'
)
}
stages {
stage('Checkout') {
steps {
script {
git credentialsId: 'jenkins-user-github', url: 'https://git.wmi.amu.edu.pl/s478831/ium_478831.git'
sh "ls -lart ./*"
sh "git branch -a"
sh "git checkout master"
}
}
}
stage("Shell Script") {
steps {
sh "chmod u+x ./script2.sh"
sh "./script2.sh"
archiveArtifacts 'stats.csv'
}
}
}
}