pass params to docker

This commit is contained in:
Adam Wojdyla 2022-04-01 23:36:30 +02:00
parent e3fbc0115a
commit a57c2dfa63

View File

@ -1,25 +1,28 @@
pipeline { pipeline {
agent { parameters {
dockerfile true string(
} defaultValue: 'heatedboss2',
parameters { description: 'Kaggle username',
string( name: 'KAGGLE_USERNAME',
defaultValue: 'heatedboss2', trim: false
description: 'Kaggle username', )
name: 'KAGGLE_USERNAME', password(
trim: false defaultValue: '',
) description: 'Kaggle token',
password( name: 'KAGGLE_KEY'
defaultValue: '', )
description: 'Kaggle token', }
name: 'KAGGLE_KEY' agent {
) dockerfile{
} additionalBuildArgs '--build-arg KAGGLE_USERNAME="$KAGGLE_USERNAME"'
stages {
stage('Test') { }
steps { }
sh 'env' stages {
stage('Test') {
steps {
sh 'env'
}
} }
} }
}
} }