Loading script & pipeline mod

This commit is contained in:
s478841 2022-03-21 11:07:56 +01:00
parent 876738d67b
commit 7c87d7ea7d
2 changed files with 6 additions and 15 deletions

20
Jenkinsfile vendored
View File

@ -1,21 +1,11 @@
node {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'Hello World!',
description: 'Tekst do wyświetlenie',
name: 'INPUT_TEXT',
trim: false
)
])
])
stage('checkout: Check out from version control') {
git clone https://git.wmi.amu.edu.pl/s478841/ium_478841.git
}
stage('Hello') {
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
echo "INPUT_TEXT: ${INPUT_TEXT}"
stage('sh: Shell Script') {
//Wywołaj w konsoli komendę "figlet", która generuje ASCI-art
sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
//sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
sh "./load_data.sh | tee output.txt"
}
stage('Goodbye') {
echo 'Goodbye!'

1
load_data.sh Normal file
View File

@ -0,0 +1 @@
figlet "Load data"