ium_444356/Jenkinsfile_docker

33 lines
964 B
Plaintext
Raw Normal View History

2022-04-01 14:02:40 +02:00
pipeline {
2022-04-02 13:34:16 +02:00
agent {
2022-04-02 13:50:50 +02:00
dockerfile {
2022-04-05 16:10:45 +02:00
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t maciejczajka"
2022-04-02 13:50:50 +02:00
}
2022-04-02 13:34:16 +02:00
}
parameters {
string(
defaultValue: 'maciejczajka',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
2022-04-10 11:38:54 +02:00
defaultValue: '',
2022-04-02 13:34:16 +02:00
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
string(
2022-04-02 13:44:21 +02:00
defaultValue: '1000',
2022-04-02 13:34:16 +02:00
description: 'Cutoff lines',
name: 'CUTOFF'
)
2022-04-01 13:12:51 +02:00
}
2022-04-02 13:34:16 +02:00
stages {
stage('Script'){
steps {
2022-04-02 13:46:32 +02:00
sh 'python3 ./Zajecia_2/main.py'
2022-05-02 14:07:49 +02:00
archiveArtifacts artifacts: 'all_games.dev.csv, all_games.test.csv, all_games.train.csv', followSymlinks: false
2022-04-02 13:34:16 +02:00
}
}
}
2022-04-01 13:12:51 +02:00
}