This commit is contained in:
Mateusz Piwowarski 2024-03-20 14:37:27 +01:00
parent 68234f4d84
commit 072bc15069
1 changed files with 10 additions and 23 deletions

33
Jenkinsfile vendored
View File

@ -1,25 +1,12 @@
node {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'Hello World!',
description: 'Tekst do wyświetlenie',
name: 'INPUT_TEXT',
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'
pipeline {
agent any
stages {
stage('Clone Repository') {
steps {
// Clone the Git repository
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s464913/ium_464913'
}
}
}
}