Git
This commit is contained in:
parent
e01d111888
commit
607fc36d76
30
Jenkinsfile
vendored
30
Jenkinsfile
vendored
@ -24,30 +24,12 @@ node {
|
|||||||
|
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']],
|
script {
|
||||||
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s478855/ium_478855.git']]])
|
git credentialsId: 'jenkins-user-github', url: 'https://git.wmi.amu.edu.pl/s478855/ium_478855.git'
|
||||||
|
sh "ls -lart ./*"
|
||||||
|
sh "git branch -a"
|
||||||
|
sh "git checkout master"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build') {
|
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
|
||||||
sh 'echo "BUILD"'
|
|
||||||
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
|
||||||
//sh 'kaggle datasets list'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Data Preparation') {
|
|
||||||
sh 'echo "PREPARATION"'
|
|
||||||
sh "chmod u+x ./preparation.sh"
|
|
||||||
sh "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} CUTOFF=${CUTOFF} ./preparation.sh"
|
|
||||||
archiveArtifacts 'KaggleV2-May-2016.csv'
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Statistics') {
|
|
||||||
sh "chmod u+x ./preparation.sh"
|
|
||||||
sh "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} CUTOFF=${CUTOFF} ./preparation.sh"
|
|
||||||
archiveArtifacts 'statistics.csv'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user