pass params to docker
This commit is contained in:
parent
e3fbc0115a
commit
a57c2dfa63
@ -1,7 +1,4 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
|
||||||
dockerfile true
|
|
||||||
}
|
|
||||||
parameters {
|
parameters {
|
||||||
string(
|
string(
|
||||||
defaultValue: 'heatedboss2',
|
defaultValue: 'heatedboss2',
|
||||||
@ -15,6 +12,12 @@ parameters {
|
|||||||
name: 'KAGGLE_KEY'
|
name: 'KAGGLE_KEY'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
agent {
|
||||||
|
dockerfile{
|
||||||
|
additionalBuildArgs '--build-arg KAGGLE_USERNAME="$KAGGLE_USERNAME"'
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
|
Loading…
Reference in New Issue
Block a user