20 lines
828 B
Groovy
20 lines
828 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Clone repo + run bash script') {
|
|
steps {
|
|
properties([parameters([string(defaultValue: '5', description: 'Amount of lines to cut off the file.', name: 'CUTOFF', trim: false)])])
|
|
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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |