jen
This commit is contained in:
parent
c467dc04b0
commit
d606d60ec0
60
Jenkinsfile
vendored
60
Jenkinsfile
vendored
@ -1,42 +1,26 @@
|
|||||||
pipeline {
|
node {
|
||||||
stages {
|
stage('Preparation') {
|
||||||
stage('Preparation') {
|
properties([
|
||||||
properties([
|
parameters([
|
||||||
parameters([
|
string(
|
||||||
string(
|
defaultValue: 'bartekmalanka',
|
||||||
defaultValue: 'tomaszzitkiewicz',
|
description: 'Kaggle username',
|
||||||
description: 'Kaggle username',
|
name: 'KAGGLE_USERNAME',
|
||||||
name: 'KAGGLE_USERNAME',
|
trim: false
|
||||||
trim: false
|
),
|
||||||
),
|
password(
|
||||||
password(
|
defaultValue: '',
|
||||||
defaultValue: '',
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||||
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
name: 'KAGGLE_KEY'
|
||||||
name: 'KAGGLE_KEY'
|
)
|
||||||
)
|
|
||||||
])
|
|
||||||
])
|
])
|
||||||
}
|
])
|
||||||
stage('Checkout') {
|
}
|
||||||
steps {
|
stage('Build') {
|
||||||
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487184/ium_487184'
|
// Run the maven build
|
||||||
}
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
}
|
|
||||||
|
|
||||||
stage('Run Script') {
|
|
||||||
steps {
|
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||||
sh 'kaggle datasets download -d elakiricoder/gender-classification-dataset > output.txt'
|
sh 'kaggle datasets download -d elakiricoder/gender-classification-dataset > output.txt'
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Archive Artifacts') {
|
|
||||||
steps {
|
|
||||||
archiveArtifacts 'output.txt'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user