Update Jenkinsfile

This commit is contained in:
s464903 2024-03-20 12:43:09 +01:00
parent 24ac0dc57a
commit 5bbe7e7ff1

25
Jenkinsfile vendored
View File

@ -2,6 +2,31 @@ pipeline {
agent any
stages {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'jakubbg',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
),
password(
defaultValue: 'e42b293c818e4ecd7b9365ee037af428',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
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'
}
}
stage('Checkout') {
steps {
// Krok: Sklonowanie repozytorium git