Fix for jenkins config

This commit is contained in:
Wojciech Jarmosz 2021-03-28 00:44:20 +01:00
parent f785032fcd
commit 8045054807
2 changed files with 4 additions and 4 deletions

6
Jenkinsfile vendored
View File

@ -1,15 +1,15 @@
pipeline { pipeline {
agent any agent any
stages { stages {
node {
stage('Clone repo + run bash script') { stage('Clone repo + run bash script') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) { "KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
// Chekout na reporyztorium // Chekout na reporyztorium
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'f746c8e0-e974-4758-838d-1920a7b0e3dc', url: 'https://git.wmi.amu.edu.pl/s434704/ium_434704']]]) checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'f746c8e0-e974-4758-838d-1920a7b0e3dc', url: 'https://git.wmi.amu.edu.pl/s434704/ium_434704']]])
// Uruchomienie skryptu // Uruchomienie skryptu
sh "chmod 777 ./data_sets.sh" sh "chmod 777 ./data_download.sh"
sh "./data_sets.sh" sh "./data_download.sh"
// Zapisanie artefaktów // Zapisanie artefaktów
archiveArtifacts "MoviesOnStreamingPlatforms_updated.dev" archiveArtifacts "MoviesOnStreamingPlatforms_updated.dev"
archiveArtifacts "MoviesOnStreamingPlatforms_updated.test" archiveArtifacts "MoviesOnStreamingPlatforms_updated.test"