tweak(UMA_03) Update Jenkinsfile
This commit is contained in:
parent
55c938091c
commit
a158d62eca
38
Jenkinsfile
vendored
38
Jenkinsfile
vendored
@ -1,22 +1,28 @@
|
|||||||
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
|
||||||
|
)
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Hello') {
|
||||||
|
steps {
|
||||||
|
//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('sh: Shell Script'){
|
stage('Goodbye!') {
|
||||||
steps{
|
steps {
|
||||||
./script.sh
|
echo 'Goodbye!'
|
||||||
}
|
//Zarchiwizuj wynik
|
||||||
}
|
archiveArtifacts 'output.txt'
|
||||||
stage('Archive artifacts'){
|
|
||||||
steps{
|
|
||||||
archiveArtifacts 'test.csv'
|
|
||||||
archiveArtifacts 'dev.csv'
|
|
||||||
archiveArtifacts 'train.csv'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user