ium_444356/Jenkinsfile_docker
Maciej Czajka 24b2211741
All checks were successful
s444356-training/pipeline/head This commit looks good
update download.sh, jenkinsfile_docker and jenkinsfile_train
2022-05-02 15:29:56 +02:00

35 lines
1.0 KiB
Plaintext

pipeline {
agent {
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t maciejczajka"
}
}
parameters {
string(
defaultValue: 'maciejczajka',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
string(
defaultValue: '1000',
description: 'Cutoff lines',
name: 'CUTOFF'
)
}
stages {
stage('Script'){
steps {
sh './download.sh $CUTOFF'
sh 'python3 ./Zajecia_2/main.py'
archiveArtifacts artifacts: 'all_games.dev.csv, all_games.test.csv, all_games.train.csv', followSymlinks: false
build job: 's444356-create-dataset'
}
}
}
}