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{ pipeline{
agent any agent any
parameters { 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{ stages{
stage('Stage 1'){ stage('Stage 1'){
steps{ steps{
echo 'Init Jenkins file!' echo 'Hello World!'
} }
} }
stage('checkout: Check out from version control'){ stage('checkout: Check out from version control'){
@ -18,7 +18,7 @@ pipeline{
steps{ steps{
withEnv(["CUTOFF=${params.CUTOFF}"]) { withEnv(["CUTOFF=${params.CUTOFF}"]) {
sh "chmod 777 ./script.sh" sh "chmod 777 ./script.sh"
./data.sh sh "./data.sh"
} }
}} }}
stage('Archive artifacts'){ stage('Archive artifacts'){