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