Jenkinsfile changed
This commit is contained in:
parent
5b02c0fe05
commit
dfe790f8d5
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@ -25,10 +25,24 @@ pipeline {
|
|||||||
url: 'https://git.wmi.amu.edu.pl/s434742/ium_434742'
|
url: 'https://git.wmi.amu.edu.pl/s434742/ium_434742'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('sh: Shell Script') {
|
// stage('sh: Shell Script') {
|
||||||
|
// steps {
|
||||||
|
// withEnv(['KAGGLE_USERNAME=$params.KAGGLE_USERNAME',
|
||||||
|
// 'KAGGLE_KEY=$params.KAGGLE_KEY']) {
|
||||||
|
// sh 'chmod +x avocado-preprocessing.sh'
|
||||||
|
// sh 'chmod +x ./avocado-preprocessing.sh'
|
||||||
|
// sh 'echo ${CUTOFF}'
|
||||||
|
// sh './avocado-preprocessing.sh ${CUTOFF}'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
stage('docker') {
|
||||||
steps {
|
steps {
|
||||||
withEnv(['KAGGLE_USERNAME=$params.KAGGLE_USERNAME',
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
'KAGGLE_KEY=$params.KAGGLE_KEY']) {
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
|
script {
|
||||||
|
def img = docker.build('patlaz/ium:1.0')
|
||||||
|
img.inside {
|
||||||
sh 'chmod +x avocado-preprocessing.sh'
|
sh 'chmod +x avocado-preprocessing.sh'
|
||||||
sh 'chmod +x ./avocado-preprocessing.sh'
|
sh 'chmod +x ./avocado-preprocessing.sh'
|
||||||
sh 'echo ${CUTOFF}'
|
sh 'echo ${CUTOFF}'
|
||||||
@ -36,6 +50,9 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('archiveArtifacts') {
|
stage('archiveArtifacts') {
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts 'test.csv'
|
archiveArtifacts 'test.csv'
|
||||||
|
Loading…
Reference in New Issue
Block a user