Change Jenkinsfile
This commit is contained in:
parent
64530907d3
commit
5c200cb131
37
Jenkinsfile
vendored
37
Jenkinsfile
vendored
@ -1,25 +1,16 @@
|
|||||||
node {
|
pipeline {
|
||||||
stage('Preparation') {
|
agent any
|
||||||
properties([
|
|
||||||
parameters([
|
stages {
|
||||||
string(
|
stage('Checkout') {
|
||||||
defaultValue: 'Hello World!',
|
steps {
|
||||||
description: 'Tekst do wyświetlenia',
|
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487185/inzynieria-uczenia-maszynowego.git'
|
||||||
name: 'INPUT_TEXT',
|
}
|
||||||
trim: false
|
}
|
||||||
)
|
stage('Shell script') {
|
||||||
])
|
steps {
|
||||||
])
|
sh 'echo test'
|
||||||
}
|
}
|
||||||
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