ium_z434686/Jenkinsfile_dataset_stats

54 lines
1.7 KiB
Plaintext
Raw Normal View History

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'
}
}
2023-04-18 20:54:34 +02:00
stage('copy_artifacts') {
steps {
2023-04-19 17:18:38 +02:00
copyArtifacts filter: 'X_test.csv,X_dev.csv,X_train.csv', fingerprintArtifacts: true, projectName: 'z-s434686-create-dataset', selector: workspace()
}
}
stage('Docker') {
agent {
dockerfile {
filename 'second.dockerfile'
dir 'ium_z434686'
reuseNode true
}
}
steps {
sh 'ls -a'
sh 'python ./ium_z434686/dataset-stats.py'
echo 'koniec'
//archiveArtifacts 'X_test.csv'
//archiveArtifacts 'X_dev.csv'
//archiveArtifacts 'X_train.csv'
2023-04-18 20:54:34 +02:00
}
}
2023-04-18 21:00:26 +02:00
stage('Goodbye!') {
steps {
echo 'Goodbye!'
//Zarchiwizuj wynik
archiveArtifacts 'dataset.csv'
}
}
2023-04-18 20:37:10 +02:00
}
}