Loading script & pipeline mod
This commit is contained in:
parent
876738d67b
commit
7c87d7ea7d
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
@ -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
1
load_data.sh
Normal file
@ -0,0 +1 @@
|
||||
figlet "Load data"
|
Loading…
Reference in New Issue
Block a user