ium_434732/Jenkinsfile
s434732 a8eb0ab145
Some checks failed
s434732-training/pipeline/head There was a failure building this commit
zad5
2021-04-24 12:21:33 +02:00

48 lines
1.3 KiB
Groovy

node {
stage('One') {
properties([
parameters([
string(defaultValue: '',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false),
password(defaultValue: '',
description: 'Kaggle token',
name: 'KAGGLE_KEY')
])
]
)
stage('Two') {
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/s434732/ium_434732']]])
checkout scm
def image = docker.build("s434732/ium")
image.inside {
sh 'python3 ./skrypt_download.py'
sh 'python3 ./IUM_05.py > model.txt'
archiveArtifacts "train.csv"
archiveArtifacts "test.csv"
archiveArtifacts "valid.csv"
archiveArtifacts 'model.txt'
}
}
}
}
}