2021-03-28 21:45:05 +02:00
|
|
|
node {
|
|
|
|
stage('One') {
|
|
|
|
properties([
|
|
|
|
parameters([
|
|
|
|
string(defaultValue: '',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false),
|
|
|
|
password(defaultValue: '',
|
|
|
|
description: 'Kaggle token',
|
|
|
|
name: 'KAGGLE_KEY'),
|
2021-03-28 22:05:15 +02:00
|
|
|
string(defaultValue: '1000',
|
2021-03-28 21:45:05 +02:00
|
|
|
description: 'Data cutoff',
|
|
|
|
name: 'CUTOFF',
|
|
|
|
trim: false)
|
|
|
|
])
|
|
|
|
]
|
2021-03-28 21:36:23 +02:00
|
|
|
)
|
2021-03-28 21:45:05 +02:00
|
|
|
stage('Two') {
|
|
|
|
|
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s440058/ium_440058']]])
|
|
|
|
|
2021-04-25 23:35:11 +02:00
|
|
|
checkout scm
|
|
|
|
|
|
|
|
def image = docker.build("s440058/ium")
|
|
|
|
image.inside {
|
|
|
|
sh 'python3 ./pytorch-example.py > model.txt'
|
|
|
|
sh 'python3 ./init.py > model.txt'
|
2021-03-28 21:45:05 +02:00
|
|
|
sh "chmod 777 ./bash.sh"
|
|
|
|
sh "./bash.sh"
|
|
|
|
|
|
|
|
archiveArtifacts "courses.data.dev"
|
|
|
|
archiveArtifacts "courses.data.test"
|
|
|
|
archiveArtifacts "courses.data.train"
|
2021-04-25 23:35:11 +02:00
|
|
|
archiveArtifacts 'model.txt'
|
|
|
|
}
|
2021-03-28 21:45:05 +02:00
|
|
|
}
|
2021-03-28 21:36:23 +02:00
|
|
|
}
|
|
|
|
}
|
2021-03-28 20:05:59 +02:00
|
|
|
}
|