Modify Jenkinsfile

This commit is contained in:
Jakub Henyk 2023-03-28 13:07:50 +02:00
parent 5bc58ee965
commit c1e70ea761

11
Jenkinsfile vendored
View File

@ -10,18 +10,11 @@ pipeline {
)
}
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') {
steps {
sh "chmod +x -R ${env.WORKSPACE}"
sh './take_data.sh'
def output = sh './take_data.sh'
echo "Output: ${output}"
}
}