move run script to jenkins

This commit is contained in:
s444417 2022-04-25 19:42:13 +02:00
parent 3880422996
commit 1e9baedca1
4 changed files with 11 additions and 3 deletions

View File

@ -22,4 +22,4 @@ RUN chmod o+wrx ./startscript1.sh
RUN chmod o+wrx ./runPythonScripts.sh RUN chmod o+wrx ./runPythonScripts.sh
RUN ./startscript1.sh # RUN ./startscript1.sh

7
Jenkinsfile vendored
View File

@ -23,6 +23,13 @@ pipeline {
checkout scm checkout scm
} }
} }
stage("start docker") {
agent {
docker.image.inside('mikolajk/ium:latest') {
sh './startscript1.sh'
}
}
}
stage("Shell Scripts") { stage("Shell Scripts") {
steps { steps {
// sh "KAGGLE_USERNAME=${params.KAGGLE_USERNAME} KAGGLE_KEY=${params.KAGGLE_KEY} CUTOFF=${CUTOFF} ./startscript1.sh" // sh "KAGGLE_USERNAME=${params.KAGGLE_USERNAME} KAGGLE_KEY=${params.KAGGLE_KEY} CUTOFF=${CUTOFF} ./startscript1.sh"

View File

@ -4,6 +4,7 @@ pipeline {
stage("start docker") { stage("start docker") {
agent { agent {
docker.image.inside('mikolajk/ium:latest') { 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' archiveArtifacts './Participants_Data_HPP/Train.csv ./Participants_Data_HPP/Test.csv ./Participants_Data_HPP/Dev.csv'
} }
} }

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# kaggle datasets download -d akash14/house-price-dataset # kaggle datasets download -d akash14/house-price-dataset
pwd #pwd
ls -la #ls -la
unzip -o house-price-dataset.zip unzip -o house-price-dataset.zip
# echo $CUTOFF # echo $CUTOFF