docker integration

This commit is contained in:
Karolina Oparczyk 2021-04-14 20:40:09 +02:00
parent 17218cd3cb
commit 379beaf2d9

29
Jenkinsfile vendored
View File

@ -20,18 +20,23 @@ node {
} }
stage('Clone repo') { stage('Clone repo') {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]){ checkout scm
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434765/ium_434765']]]) def testImage = docker.build("karopa/ium:01")
sh ''' testImage.inside {
#!/usr/bin/env bash withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]){
chmod 777 get_data_simple.sh checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434765/ium_434765']]])
./get_data_simple.sh $CUTOFF | tee output.txt sh '''
''' #!/usr/bin/env bash
archiveArtifacts "data_dev" chmod 777 get_data_simple.sh
archiveArtifacts "data_shuf" ./get_data_simple.sh $CUTOFF | tee output.txt
archiveArtifacts "data_test" '''
archiveArtifacts "data_train" archiveArtifacts "data_dev"
archiveArtifacts "output.txt" archiveArtifacts "data_shuf"
archiveArtifacts "data_test"
archiveArtifacts "data_train"
archiveArtifacts "output.txt"
}
} }
} }
} }