ium_478815/Jenkinsfile_train

32 lines
872 B
Plaintext
Raw Normal View History

2022-05-06 18:56:07 +02:00
pipeline {
agent {
2022-05-06 19:46:27 +02:00
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=51854c15661583860a60db232a7026f0 --build-arg CUTOFF=${params.CUTOFF} -t kgirejko"
}
2022-05-06 19:47:15 +02:00
}
2022-05-06 19:36:02 +02:00
parameters {
string(
defaultValue: 'kgirejko',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '51854c15661583860a60db232a7026f0',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
}
2022-05-06 19:19:11 +02:00
stages {
2022-05-06 19:27:12 +02:00
stage('First'){
2022-05-06 19:19:11 +02:00
steps {
copyArtifacts filter: '*', projectName: 's478815-create-dataset'
2022-05-06 19:39:37 +02:00
sh 'python3 ./DL.py'
archiveArtifacts artifacts: 'modelP.pkl', followSymlinks: false
2022-05-06 19:19:11 +02:00
}
2022-05-06 19:11:58 +02:00
}
2022-05-06 19:19:11 +02:00
}
2022-05-06 19:36:02 +02:00
}