diff --git a/Jenkinsfile b/Jenkinsfile index 4ac9fb9..2d994bd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,17 +25,34 @@ pipeline { url: 'https://git.wmi.amu.edu.pl/s434742/ium_434742' } } - 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('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 { + withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", + "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 'echo ${CUTOFF}' + sh './avocado-preprocessing.sh ${CUTOFF}' + } + } + } + } + } + stage('archiveArtifacts') { steps { archiveArtifacts 'test.csv'