Update Jenkinsfile
This commit is contained in:
parent
1515ae2f8c
commit
26885861e1
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@ -3,7 +3,7 @@ pipeline {
|
|||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Preparation') {
|
stage('Preparation') {
|
||||||
properties([
|
steps {
|
||||||
parameters([
|
parameters([
|
||||||
string(
|
string(
|
||||||
defaultValue: 'jakubbg',
|
defaultValue: 'jakubbg',
|
||||||
@ -17,14 +17,16 @@ pipeline {
|
|||||||
name: 'KAGGLE_KEY'
|
name: 'KAGGLE_KEY'
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
])
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
// Run the maven build
|
steps {
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
// Run the maven build
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||||
sh 'kaggle datasets list'
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||||
|
sh 'kaggle datasets list'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
|
Loading…
Reference in New Issue
Block a user