2022-03-25 08:14:39 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
|
|
|
|
parameters {
|
|
|
|
string (
|
|
|
|
defaultValue: 'Hello World!',
|
|
|
|
description: 'Tekst, którym chcesz przywitać świat',
|
|
|
|
name: 'INPUT_TEXT',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
2022-03-26 10:37:01 +01:00
|
|
|
stage('Checkout') {
|
2022-03-25 08:14:39 +01:00
|
|
|
steps {
|
2022-03-26 10:37:01 +01:00
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: '8b8d54ee-f03c-4980-90b1-959faa97082b', url: 'https://git.wmi.amu.edu.pl/s444507/ium_444507.git']]])
|
2022-03-25 08:14:39 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Goodbye!') {
|
|
|
|
steps {
|
|
|
|
echo 'Goodbye!'
|
|
|
|
//Zarchiwizuj wynik
|
|
|
|
archiveArtifacts 'output.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|