jen
This commit is contained in:
parent
c467dc04b0
commit
d606d60ec0
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@ -1,10 +1,9 @@
|
||||
pipeline {
|
||||
stages {
|
||||
node {
|
||||
stage('Preparation') {
|
||||
properties([
|
||||
parameters([
|
||||
string(
|
||||
defaultValue: 'tomaszzitkiewicz',
|
||||
defaultValue: 'bartekmalanka',
|
||||
description: 'Kaggle username',
|
||||
name: 'KAGGLE_USERNAME',
|
||||
trim: false
|
||||
@ -17,26 +16,11 @@ pipeline {
|
||||
])
|
||||
])
|
||||
}
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487184/ium_487184'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Run Script') {
|
||||
steps {
|
||||
stage('Build') {
|
||||
// Run the maven build
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
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