Checkout
This commit is contained in:
parent
2e0b705516
commit
4d570a56b2
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -10,19 +10,12 @@ pipeline {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Hello') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
|
checkout scmGit(
|
||||||
echo "INPUT_TEXT: ${INPUT_TEXT}"
|
branches: [[name: '*/main']],
|
||||||
//Wywołaj w konsoli komendę "figlet", która generuje ASCII-art
|
extensions: [],
|
||||||
sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
|
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/pms/ium-s301654']])
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Goodbye!') {
|
|
||||||
steps {
|
|
||||||
echo 'Goodbye!'
|
|
||||||
//Zarchiwizuj wynik
|
|
||||||
archiveArtifacts 'output.txt'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user