2023-04-18 20:37:10 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
|
2023-04-18 20:53:27 +02:00
|
|
|
parameters{
|
|
|
|
choice(
|
|
|
|
choices: ['lastSuccessful()', 'lastCompleted()', 'latestSavedBuild()'],
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR'
|
|
|
|
)}
|
2023-04-18 20:37:10 +02:00
|
|
|
stages {
|
|
|
|
stage('clear_all') {
|
|
|
|
steps {
|
|
|
|
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
|
|
|
|
sh 'rm -rf ium_z434686'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('checkout') {
|
|
|
|
steps {
|
|
|
|
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
|
|
|
|
sh 'git clone https://git.wmi.amu.edu.pl/s434686/ium_z434686'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|