ium_430705/Jenkinsfile_Stats
Michał Zaręba e8f1e9e995
All checks were successful
multibranch-hello-world/pipeline/head This commit looks good
Zaktualizuj 'Jenkinsfile_Stats'
2021-04-08 23:38:51 +02:00

26 lines
811 B
Plaintext

pipeline {
agent any
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"
}
}
stage("Lab04 CW3"){
agent {
docker {
image "s430705/ium:3"
}
}
steps {
sh 'python3 ./script2.py'
}
}
}
}