ium_444507/Jenkinsfile

34 lines
932 B
Plaintext
Raw Normal View History

2022-03-25 08:14:39 +01:00
pipeline {
agent any
2022-03-26 12:18:43 +01:00
parameters ([
2022-03-25 08:14:39 +01:00
string (
2022-03-26 12:15:30 +01:00
defaultValue: 'heatedboss2',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
2022-03-25 08:14:39 +01:00
trim: false
2022-03-26 12:15:30 +01:00
),
password (
defaultValue: '',
description: 'Kaggle token',
name: 'KAGGLE_KEY'
2022-03-25 08:14:39 +01:00
)
2022-03-26 12:18:43 +01:00
])
2022-03-25 08:14:39 +01:00
stages {
2022-03-26 10:37:01 +01:00
stage('Checkout') {
2022-03-25 08:14:39 +01:00
steps {
2022-03-26 10:37:01 +01:00
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']]])
2022-03-25 08:14:39 +01:00
}
}
2022-03-26 10:53:51 +01:00
stage('Script') {
2022-03-25 08:14:39 +01:00
steps {
2022-03-26 10:53:51 +01:00
script {
2022-03-26 12:15:30 +01:00
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}" ])
{
sh 'ls -la'
sh './download.sh'
}
2022-03-26 10:53:51 +01:00
}
2022-03-25 08:14:39 +01:00
}
}
}
}