ium_434704/Jenkinsfile

20 lines
828 B
Plaintext
Raw Normal View History

2021-03-27 19:39:22 +01:00
pipeline {
2021-03-28 18:18:45 +02:00
agent any
stages {
stage('Clone repo + run bash script') {
2021-03-28 18:21:17 +02:00
steps {
2021-03-28 18:35:27 +02:00
properties([parameters([string(defaultValue: '5', description: 'Amount of lines to cut off the file.', name: 'CUTOFF', trim: false)])])
2021-03-28 18:18:45 +02:00
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"
2021-03-27 19:39:22 +01:00
}
2021-03-28 18:18:45 +02:00
}
2021-03-28 18:21:17 +02:00
}
2021-03-28 18:18:45 +02:00
}
2021-03-27 19:39:22 +01:00
}