Update 'Jenkinsfile_dataset_stats'
This commit is contained in:
parent
3e7414e004
commit
857737913b
@ -1,6 +1,5 @@
|
||||
pipeline {
|
||||
agent any
|
||||
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
|
||||
parameters{
|
||||
choice(
|
||||
choices: ['lastSuccessful()', 'lastCompleted()', 'latestSavedBuild()'],
|
||||
@ -8,15 +7,13 @@ pipeline {
|
||||
name: 'BUILD_SELECTOR'
|
||||
)}
|
||||
stages {
|
||||
stage('clear_all') {
|
||||
stage('clear_before') {
|
||||
steps {
|
||||
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
|
||||
sh 'rm -rf ium_z434686'
|
||||
sh 'rm -rf *'
|
||||
}
|
||||
}
|
||||
stage('checkout') {
|
||||
stage('clone_git') {
|
||||
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'
|
||||
}
|
||||
}
|
||||
@ -34,20 +31,15 @@ pipeline {
|
||||
}
|
||||
}
|
||||
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'
|
||||
archiveArtifacts 'X_test_stats.csv'
|
||||
archiveArtifacts 'X_dev_stats.csv'
|
||||
archiveArtifacts 'X_train_stats.csv'
|
||||
}
|
||||
}
|
||||
stage('Goodbye!') {
|
||||
stage('clear_after!') {
|
||||
steps {
|
||||
echo 'Goodbye!'
|
||||
//Zarchiwizuj wynik
|
||||
archiveArtifacts 'dataset.csv'
|
||||
|
||||
sh 'rm -rf *'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user