37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
pipeline {
|
|
agent any
|
|
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
|
|
parameters{
|
|
choice(
|
|
choices: ['lastSuccessful()', 'lastCompleted()', 'latestSavedBuild()'],
|
|
description: 'Which build to use for copying artifacts',
|
|
name: 'BUILD_SELECTOR'
|
|
)}
|
|
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'
|
|
}
|
|
}
|
|
stage('copy_artifacts') {
|
|
steps {
|
|
copyArtifacts filter: 'dataset.csv', fingerprintArtifacts: true, projectName: 'z-s434686-create-dataset', selector: workspace()
|
|
}
|
|
}
|
|
stage('Goodbye!') {
|
|
steps {
|
|
echo 'Goodbye!'
|
|
//Zarchiwizuj wynik
|
|
archiveArtifacts 'dataset.csv'
|
|
|
|
}
|
|
}
|
|
}
|
|
} |