fix jenkinsfile
This commit is contained in:
parent
1ba55b36bd
commit
52d61cf757
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -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'){
|
||||||
|
Loading…
Reference in New Issue
Block a user