ium_478815/Jenkinsfile_train

33 lines
868 B
Plaintext
Raw Normal View History

2022-05-06 18:56:07 +02:00
pipeline {
agent {
2022-05-06 19:36:02 +02:00
dockerfile {
2022-05-06 19:37:00 +02:00
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t kgirejko"
2022-05-06 19:36:02 +02:00
}
2022-05-06 18:56:07 +02:00
}
2022-05-06 19:11:58 +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:36:02 +02:00
sh 'python3./biblioteka_DL.py'
2022-05-06 19:23:54 +02:00
archiveArtifacts artifacts: 'model.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
}