Jenkins
This commit is contained in:
parent
68234f4d84
commit
072bc15069
33
Jenkinsfile
vendored
33
Jenkinsfile
vendored
@ -1,25 +1,12 @@
|
|||||||
node {
|
pipeline {
|
||||||
stage('Preparation') {
|
agent any
|
||||||
properties([
|
|
||||||
parameters([
|
stages {
|
||||||
string(
|
stage('Clone Repository') {
|
||||||
defaultValue: 'Hello World!',
|
steps {
|
||||||
description: 'Tekst do wyświetlenie',
|
// Clone the Git repository
|
||||||
name: 'INPUT_TEXT',
|
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s464913/ium_464913'
|
||||||
trim: false
|
}
|
||||||
)
|
}
|
||||||
])
|
|
||||||
])
|
|
||||||
}
|
|
||||||
stage('Hello') {
|
|
||||||
//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 ASCI-art
|
|
||||||
sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
|
|
||||||
}
|
|
||||||
stage('Goodbye') {
|
|
||||||
echo 'Goodbye!'
|
|
||||||
//Zarchiwizuj wynik
|
|
||||||
archiveArtifacts 'output.txt'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user