Test new jenkinsfile
This commit is contained in:
parent
3da688fc5f
commit
a72ca4bc0e
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -1,4 +1,7 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
|
agent {
|
||||||
|
dockerfile true
|
||||||
|
}
|
||||||
parameters {
|
parameters {
|
||||||
string (
|
string (
|
||||||
defaultValue: 'kamilguttmann',
|
defaultValue: 'kamilguttmann',
|
||||||
@ -17,33 +20,25 @@ pipeline {
|
|||||||
name: 'CUTOFF'
|
name: 'CUTOFF'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
agent none
|
|
||||||
stages {
|
stages {
|
||||||
stage('Hello') {
|
stage('Hello') {
|
||||||
agent any
|
|
||||||
steps {
|
steps {
|
||||||
echo 'Hello World'
|
echo 'Hello World'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Checkout git") {
|
stage("Checkout git") {
|
||||||
agent any
|
|
||||||
steps {
|
steps {
|
||||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444380', url: 'https://git.wmi.amu.edu.pl/s444380/ium_444380.git']]])
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444380', url: 'https://git.wmi.amu.edu.pl/s444380/ium_444380.git']]])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Download data") {
|
stage("Download data") {
|
||||||
agent {
|
|
||||||
dockerfile {
|
|
||||||
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY} -e CUTOFF=${params.CUTOFF}'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
steps {
|
||||||
sh "echo $KAGGLE_USERNAME $CUTOFF"
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
sh "KAGGLE_USERNAME=${params.KAGGLE_USERNAME}"
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
sh "KAGGLE_KEY=${params.KAGGLE_KEY}"
|
|
||||||
sh "./download_data.sh"
|
sh "./download_data.sh"
|
||||||
sh "python3 clean_and_split_data.py"
|
sh "python3 clean_and_split_data.py"
|
||||||
archiveArtifacts artifacts: "crime.test, crime.dev, crime.train", onlyIfSuccessful: true
|
archiveArtifacts artifacts: "crime.test, crime.dev, crime.train", onlyIfSuccessful: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user