Fix Jenkins config

This commit is contained in:
Wojciech Jarmosz 2021-03-28 18:18:45 +02:00
parent 6601a50cdc
commit fcd2ba3164

31
Jenkinsfile vendored
View File

@ -1,19 +1,18 @@
pipeline {
agent any
stages {
stage('Clone repo + run bash script') {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
// Uruchomienie skryptu
sh "chmod 777 ./data_download.sh"
sh "./data_download.sh"
// Zapisanie artefaktów
archiveArtifacts "MoviesOnStreamingPlatforms_updated.dev"
archiveArtifacts "MoviesOnStreamingPlatforms_updated.test"
archiveArtifacts "MoviesOnStreamingPlatforms_updated.train"
}
agent any
stages {
stage('Clone repo + run bash script') {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
// Uruchomienie skryptu
sh "chmod 777 ./data_download.sh"
sh "./data_download.sh"
// Zapisanie artefaktów
archiveArtifacts "MoviesOnStreamingPlatforms_updated.dev"
archiveArtifacts "MoviesOnStreamingPlatforms_updated.test"
archiveArtifacts "MoviesOnStreamingPlatforms_updated.train"
}
}
}
}
}
}