Update 'Jenkinsfile-Docker'

This commit is contained in:
Wojciech Mikołajski 2023-04-19 18:41:45 +02:00
parent 9e17a73911
commit 54ed25b8d9

View File

@ -27,12 +27,7 @@ node {
}
stage('Build Docker Image') {
def dockerImage = docker.build("create-dataset")
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}",
"CUT = ${params.CUT}" ])
{
sh 'docker run -v ${env.WORKSPACE}/artifacts:/app/artifacts python3 create_dataset.py $CUT'
}
sh 'docker run -v ${env.WORKSPACE}/artifacts:/app/artifacts python3 create_dataset.py $CUT'
archiveArtifacts artifacts: 'waterQuality.csv, output.txt'
}