tweak(UMA_03) Update Jenkinsfile
This commit is contained in:
parent
55c938091c
commit
a158d62eca
50
Jenkinsfile
vendored
50
Jenkinsfile
vendored
@ -1,23 +1,29 @@
|
|||||||
pipeline{
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
properties([options([text(defaultValue: '50', description: 'Number of lines to cutoff', name: 'CUTOFF')])])
|
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
|
||||||
stages{
|
parameters {
|
||||||
stage('checkout: Check out from version control'){
|
string (
|
||||||
steps{
|
defaultValue: 'Hello World!',
|
||||||
git url: 'https://git.wmi.amu.edu.pl/s434780/ium_434780'
|
description: 'Tekst, którym chcesz przywitać świat',
|
||||||
}
|
name: 'INPUT_TEXT',
|
||||||
}
|
trim: false
|
||||||
stage('sh: Shell Script'){
|
)
|
||||||
steps{
|
}
|
||||||
./script.sh
|
stages {
|
||||||
}
|
stage('Hello') {
|
||||||
}
|
steps {
|
||||||
stage('Archive artifacts'){
|
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
|
||||||
steps{
|
echo "INPUT_TEXT: ${INPUT_TEXT}"
|
||||||
archiveArtifacts 'test.csv'
|
//Wywołaj w konsoli komendę "figlet", która generuje ASCI-art
|
||||||
archiveArtifacts 'dev.csv'
|
sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
|
||||||
archiveArtifacts 'train.csv'
|
}
|
||||||
}
|
}
|
||||||
}
|
stage('Goodbye!') {
|
||||||
}
|
steps {
|
||||||
|
echo 'Goodbye!'
|
||||||
|
//Zarchiwizuj wynik
|
||||||
|
archiveArtifacts 'output.txt'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user