working pass read param

This commit is contained in:
Adam Wojdyla 2022-04-01 23:47:17 +02:00
parent 367a68ea6f
commit 66dc3f9340

View File

@ -11,17 +11,22 @@ pipeline {
description: 'Kaggle token', description: 'Kaggle token',
name: 'KAGGLE_KEY' name: 'KAGGLE_KEY'
) )
string(
defaultValue: '117928',
description: 'Cutoff',
name: 'CUTOFF',
trim: false
)
} }
agent { agent {
dockerfile{ dockerfile{
additionalBuildArgs '--build-arg KAGGLE_USERNAME="$KAGGLE_USERNAME" --build-arg KAGGLE_KEY="$KAGGLE_KEY"' additionalBuildArgs '--build-arg KAGGLE_USERNAME="$KAGGLE_USERNAME" --build-arg KAGGLE_KEY="$KAGGLE_KEY"'
} }
} }
stages { stages {
stage('Test') { stage('Prepare dataset') {
steps { steps {
sh 'env' sh './download.sh $CUTOFF'
} }
} }
} }