fix jenkinsfile

This commit is contained in:
Dawid 2021-03-28 21:12:19 +02:00
parent 1ba55b36bd
commit 52d61cf757

8
Jenkinsfile vendored
View File

@ -1,12 +1,12 @@
pipeline{
agent any
parameters {
string(defaultValue: '5', description: 'Number of lines to cutoff', name: 'CUTOFF', trim: false)
}
string(defaultValue: '100', description: 'Number of lines to cutoff', name: 'CUTOFF', trim: false)
}
stages{
stage('Stage 1'){
steps{
echo 'Init Jenkins file!'
echo 'Hello World!'
}
}
stage('checkout: Check out from version control'){
@ -18,7 +18,7 @@ pipeline{
steps{
withEnv(["CUTOFF=${params.CUTOFF}"]) {
sh "chmod 777 ./script.sh"
./data.sh
sh "./data.sh"
}
}}
stage('Archive artifacts'){