paramsfix3
This commit is contained in:
parent
2952f2d1c1
commit
d200b7af20
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
@ -1,29 +1,32 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
parameters ([
|
parameters {
|
||||||
string (
|
string(
|
||||||
defaultValue: 'heatedboss2',
|
defaultValue: 'heatedboss2',
|
||||||
description: 'Kaggle username',
|
description: 'Kaggle username',
|
||||||
name: 'KAGGLE_USERNAME',
|
name: 'KAGGLE_USERNAME',
|
||||||
trim: false
|
trim: false
|
||||||
),
|
)
|
||||||
password (
|
password(
|
||||||
defaultValue: '',
|
defaultValue: '',
|
||||||
description: 'Kaggle token',
|
description: 'Kaggle token',
|
||||||
name: 'KAGGLE_KEY'
|
name: 'KAGGLE_KEY'
|
||||||
)
|
)
|
||||||
])
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: '8b8d54ee-f03c-4980-90b1-959faa97082b', url: 'https://git.wmi.amu.edu.pl/s444507/ium_444507.git']]])
|
checkout([$class: 'GitSCM', branches: [
|
||||||
|
[name: '*/master']
|
||||||
|
], extensions: [], userRemoteConfigs: [
|
||||||
|
[credentialsId: '8b8d54ee-f03c-4980-90b1-959faa97082b', url: 'https://git.wmi.amu.edu.pl/s444507/ium_444507.git']
|
||||||
|
]])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Script') {
|
stage('Script') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}" ])
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
{
|
|
||||||
sh 'ls -la'
|
sh 'ls -la'
|
||||||
sh './download.sh'
|
sh './download.sh'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user