ium_444356/Jenkinsfile_docker

41 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-04-01 14:02:40 +02:00
pipeline {
2022-04-02 13:34:16 +02:00
agent {
dockerfile true
}
parameters {
string(
defaultValue: 'maciejczajka',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: 'd8f044ad2b96d32372e22f9054c02bb1',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
string(
2022-04-02 13:44:21 +02:00
defaultValue: '1000',
2022-04-02 13:34:16 +02:00
description: 'Cutoff lines',
name: 'CUTOFF'
)
2022-04-01 13:12:51 +02:00
}
2022-04-02 13:34:16 +02:00
environment {
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
KAGGLE_KEY="$params.KAGGLE_KEY"
CUTOFF="$params.CUTOFF"
}
stages {
stage('Checkout'){
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444356', url: 'https://git.wmi.amu.edu.pl/s444356/ium_444356.git']]])
}
}
stage('Script'){
steps {
2022-04-02 13:43:22 +02:00
sh './download.sh'
2022-04-02 13:34:16 +02:00
}
}
}
2022-04-01 13:12:51 +02:00
}