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-02 17:38:38 +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(
|
|
|
|
defaultValue: 'd8f044ad2b96d32372e22f9054c02bb1',
|
|
|
|
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-05 09:27:06 +02:00
|
|
|
cleanWs()
|
2022-04-02 13:46:32 +02:00
|
|
|
sh 'python3 ./Zajecia_2/main.py'
|
2022-04-02 14:41:29 +02:00
|
|
|
archiveArtifacts artifacts: 'all_games.csv.dev, all_games.csv.test, all_games.csv.train', followSymlinks: false
|
2022-04-02 13:34:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-01 13:12:51 +02:00
|
|
|
}
|