Update Jenkinsfile

This commit is contained in:
s464903 2024-03-20 12:46:12 +01:00
parent 1515ae2f8c
commit 26885861e1

16
Jenkinsfile vendored
View File

@ -3,7 +3,7 @@ pipeline {
stages {
stage('Preparation') {
properties([
steps {
parameters([
string(
defaultValue: 'jakubbg',
@ -17,14 +17,16 @@ pipeline {
name: 'KAGGLE_KEY'
)
])
])
}
}
stage('Build') {
// Run the maven build
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'kaggle datasets list'
steps {
// Run the maven build
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'kaggle datasets list'
}
}
}
stage('Checkout') {