Modify Jenkinsfile
This commit is contained in:
parent
5bc58ee965
commit
c1e70ea761
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -10,18 +10,11 @@ pipeline {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Hello') {
|
|
||||||
steps {
|
|
||||||
//Wypisz wartosc parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
|
|
||||||
echo "INPUT_TEXT: ${INPUT_TEXT}"
|
|
||||||
//Wywolaj w konsoli komende "figlet", ktora generuje ASCI-art
|
|
||||||
sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Run Script') {
|
stage('Run Script') {
|
||||||
steps {
|
steps {
|
||||||
sh "chmod +x -R ${env.WORKSPACE}"
|
sh "chmod +x -R ${env.WORKSPACE}"
|
||||||
sh './take_data.sh'
|
def output = sh './take_data.sh'
|
||||||
|
echo "Output: ${output}"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user