edit Jenkinsfile

This commit is contained in:
Dawid 2021-03-28 21:05:05 +02:00
parent 34a6a3a29c
commit 1ba55b36bd

11
Jenkinsfile vendored
View File

@ -1,7 +1,7 @@
pipeline{
agent any
parameters {
string(defaultValue: '100', description: 'Number of lines to cutoff', name: 'CUTOFF', trim: false)
string(defaultValue: '5', description: 'Number of lines to cutoff', name: 'CUTOFF', trim: false)
}
stages{
stage('Stage 1'){
@ -16,12 +16,11 @@ pipeline{
}
stage('sh: Shell Script'){
steps{
withEnv(["CUTOFF=${params.CUTOFF}"]) {
sh "chmod 777 ./script.sh"
./data.sh
}
withEnv(["CUTOFF=${params.CUTOFF}"]) {
sh "chmod 777 ./script.sh"
./data.sh
}
}
}}
stage('Archive artifacts'){
steps{
archiveArtifacts 'test.csv'