brakująca sekcja
This commit is contained in:
parent
04b938b22e
commit
cf04b757cc
50
Jenkinsfile
vendored
50
Jenkinsfile
vendored
@ -2,31 +2,33 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
docker { image 'adnovac/ium_s434760:latest' }
|
docker { image 'adnovac/ium_s434760:latest' }
|
||||||
}
|
}
|
||||||
parameters{
|
parameters {
|
||||||
string(
|
string(
|
||||||
defaultValue: 'annadnowak',
|
defaultValue: 'annadnowak',
|
||||||
description: 'Kaggle username',
|
description: 'Kaggle username',
|
||||||
name: 'KAGGLE_USERNAME',
|
name: 'KAGGLE_USERNAME',
|
||||||
trim: false
|
trim: false
|
||||||
)
|
)
|
||||||
password(
|
password(
|
||||||
defaultValue: '',
|
defaultValue: '',
|
||||||
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||||
name: 'KAGGLE_KEY'
|
name: 'KAGGLE_KEY'
|
||||||
)
|
)
|
||||||
stage('docker: Download artifacts')
|
}
|
||||||
{
|
stages {
|
||||||
steps {
|
stage('docker: Download artifacts')
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
{
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
steps {
|
||||||
sh 'python3.8 \"Zadanie 1.py\"'
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
}
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
|
sh 'python3.8 \"Zadanie 1.py\"'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('archive artifacts') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts 'test.csv,data_shuf.csv,validation.csv,train.csv,header.csv'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('archive artifacts') {
|
|
||||||
steps {
|
|
||||||
archiveArtifacts 'test.csv,data_shuf.csv,validation.csv,train.csv,header.csv'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user