edit Jenkinsfile
This commit is contained in:
parent
34a6a3a29c
commit
1ba55b36bd
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -1,7 +1,7 @@
|
|||||||
pipeline{
|
pipeline{
|
||||||
agent any
|
agent any
|
||||||
parameters {
|
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{
|
stages{
|
||||||
stage('Stage 1'){
|
stage('Stage 1'){
|
||||||
@ -16,12 +16,11 @@ pipeline{
|
|||||||
}
|
}
|
||||||
stage('sh: Shell Script'){
|
stage('sh: Shell Script'){
|
||||||
steps{
|
steps{
|
||||||
withEnv(["CUTOFF=${params.CUTOFF}"]) {
|
withEnv(["CUTOFF=${params.CUTOFF}"]) {
|
||||||
sh "chmod 777 ./script.sh"
|
sh "chmod 777 ./script.sh"
|
||||||
./data.sh
|
./data.sh
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}}
|
||||||
stage('Archive artifacts'){
|
stage('Archive artifacts'){
|
||||||
steps{
|
steps{
|
||||||
archiveArtifacts 'test.csv'
|
archiveArtifacts 'test.csv'
|
||||||
|
Loading…
Reference in New Issue
Block a user