This commit is contained in:
Paweł Skórzewski 2024-03-20 14:34:10 +01:00
parent 2e0b705516
commit 4d570a56b2
1 changed files with 19 additions and 26 deletions

17
Jenkinsfile vendored
View File

@ -10,19 +10,12 @@ pipeline {
)
}
stages {
stage('Hello') {
stage('Checkout') {
steps {
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
echo "INPUT_TEXT: ${INPUT_TEXT}"
//Wywołaj w konsoli komendę "figlet", która generuje ASCII-art
sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
}
}
stage('Goodbye!') {
steps {
echo 'Goodbye!'
//Zarchiwizuj wynik
archiveArtifacts 'output.txt'
checkout scmGit(
branches: [[name: '*/main']],
extensions: [],
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/pms/ium-s301654']])
}
}
}