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 { 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') {