ium_434704/Jenkinsfile
2021-05-14 00:20:04 +02:00

33 lines
1.1 KiB
Groovy

pipeline {
agent {
dockerfile true
}
parameters {
string(defaultValue: '5', description: 'Amount of lines to cut off the file.', name: 'CUTOFF', trim: false)
}
stages {
stage('Clone repo + run bash script') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
sh 'python3 linear_regression.py'
sh 'python3 script.py'
// 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"
}
}
}
}
post {
success {
build job: 's434704-training/master', parameters: [
string(name: 'options', value: "-shuffle=true")
]
}
}
}