update Jenkinsfile2

This commit is contained in:
Szymon Parafiński 2022-04-03 23:13:45 +02:00
parent ca961f47b5
commit 20265af004

22
Jenkinsfile_stats Normal file
View File

@ -0,0 +1,22 @@
pipeline {
agent {
docker {
image 'docker_image'
}
}
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
name: 'BUILD_SELECTOR',
description: 'Which build to use for copying artifacts'
)
}
stages {
stage("Script") {
steps {
sh "./lab2/stats.sh"
archiveArtifacts 'stats.txt'
}
}
}
}