Zaktualizuj 'Jenkinsfile'

This commit is contained in:
Witold Woch 2023-03-28 22:11:15 +02:00
parent d0cf9cdfcf
commit 7a909839b4

30
Jenkinsfile vendored
View File

@ -1,3 +1,22 @@
node {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'witeks1833',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
),
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
])
])
}
pipeline {
agent any
stages {
@ -15,4 +34,15 @@ pipeline {
}
}
}
}
stage('Build') {
// Run the maven build
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'chmod u+x ./Downlaods_sales.sh'
sh './Downlaods_sales.sh'
}
}
}