From 1e9baedca1d0ed125726b521414354b3b5e9657c Mon Sep 17 00:00:00 2001 From: s444417 Date: Mon, 25 Apr 2022 19:42:13 +0200 Subject: [PATCH] move run script to jenkins --- Dockerfile | 2 +- Jenkinsfile | 7 +++++++ Jenkinsfile3 | 1 + startscript1.sh | 4 ++-- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8777dab..d9b6001 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,4 +22,4 @@ RUN chmod o+wrx ./startscript1.sh RUN chmod o+wrx ./runPythonScripts.sh -RUN ./startscript1.sh \ No newline at end of file +# RUN ./startscript1.sh \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 7e20561..6be9304 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,6 +23,13 @@ pipeline { checkout scm } } + stage("start docker") { + agent { + docker.image.inside('mikolajk/ium:latest') { + sh './startscript1.sh' + } + } + } stage("Shell Scripts") { steps { // sh "KAGGLE_USERNAME=${params.KAGGLE_USERNAME} KAGGLE_KEY=${params.KAGGLE_KEY} CUTOFF=${CUTOFF} ./startscript1.sh" diff --git a/Jenkinsfile3 b/Jenkinsfile3 index f5bad76..86a57fb 100644 --- a/Jenkinsfile3 +++ b/Jenkinsfile3 @@ -4,6 +4,7 @@ pipeline { stage("start docker") { agent { docker.image.inside('mikolajk/ium:latest') { + sh './startscript1.sh' archiveArtifacts './Participants_Data_HPP/Train.csv ./Participants_Data_HPP/Test.csv ./Participants_Data_HPP/Dev.csv' } } diff --git a/startscript1.sh b/startscript1.sh index b7413bf..2770aed 100644 --- a/startscript1.sh +++ b/startscript1.sh @@ -1,7 +1,7 @@ #!/bin/bash # kaggle datasets download -d akash14/house-price-dataset -pwd -ls -la +#pwd +#ls -la unzip -o house-price-dataset.zip # echo $CUTOFF