ium_434765/Jenkinsfile

42 lines
1.8 KiB
Plaintext
Raw Normal View History

2021-03-27 20:52:07 +01:00
node {
2021-03-27 19:38:42 +01:00
stage('Preparation') {
2021-03-27 20:52:07 +01:00
2021-03-27 20:49:51 +01:00
properties([
parameters([
string(defaultValue: 'karopa',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false),
password(defaultValue: '',
description: 'Kaggle token',
2021-03-27 21:39:10 +01:00
name: 'KAGGLE_KEY'),
2021-03-27 21:56:17 +01:00
string(defaultValue: '5000',
2021-03-27 21:39:10 +01:00
description: 'Data cutoff',
name: 'CUTOFF',
2021-03-27 21:59:54 +01:00
trim: false)
2021-03-27 20:49:51 +01:00
])
]
)
2021-03-27 20:52:07 +01:00
2021-03-27 19:38:42 +01:00
}
2021-03-27 18:48:24 +01:00
stage('Clone repo') {
2021-04-14 20:40:09 +02:00
checkout scm
2021-04-14 20:56:19 +02:00
def testImage = docker.build("karopa/ium:02")
2021-04-14 20:40:09 +02:00
testImage.inside {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]){
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434765/ium_434765']]])
sh '''
#!/usr/bin/env bash
2021-04-14 21:05:47 +02:00
chmod 777 get_data.sh
2021-04-14 21:06:29 +02:00
./get_data.sh $CUTOFF | tee output.txt
2021-04-14 20:40:09 +02:00
'''
archiveArtifacts "data_dev"
archiveArtifacts "data_shuf"
archiveArtifacts "data_test"
archiveArtifacts "data_train"
archiveArtifacts "output.txt"
}
2021-03-27 20:49:51 +01:00
}
2021-04-14 20:40:09 +02:00
2021-03-27 19:38:42 +01:00
}
2021-03-27 20:52:07 +01:00
}