ium_430705/Jenkinsfile_Stats

26 lines
811 B
Plaintext
Raw Normal View History

2021-03-28 21:25:06 +02:00
pipeline {
2021-04-08 23:07:20 +02:00
agent any
2021-03-28 21:25:06 +02:00
parameters {
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
}
stages {
stage("Clone repo & print stats"){
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh "chmod 777 ./return_files_lines.sh"
sh "./return_files_lines.sh"
archiveArtifacts "stats.txt"
}
}
2021-04-08 22:58:14 +02:00
stage("Lab04 CW3"){
2021-04-08 23:07:20 +02:00
agent {
docker {
2021-04-08 23:38:51 +02:00
image "s430705/ium:3"
2021-04-08 23:07:20 +02:00
}
}
2021-04-08 22:55:00 +02:00
steps {
sh 'python3 ./script2.py'
}
}
2021-03-28 21:25:06 +02:00
}
}