Jnkns copy files test

This commit is contained in:
MatOgr 2022-04-03 21:48:57 +02:00
parent fd2a336fcb
commit a42dff6770

View File

@ -30,13 +30,15 @@ node {
checkout scm
stage('Load Docker image & data') {
def dataImage = docker.build('s478841-image', "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} .")
def dataImage = docker.build('s478841-image', "--name kaggload_image --build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} .")
dataImage.inside('-v $WORKSPACE:/output -u root') {
// sh 'chmod u+x ./scripts/data_stats.sh'
// sh './scripts/data_stats.sh'
sh 'echo Data loaded'
}
sh 'mkdir data'
sh 'docker cp kaggload_image:/app/data/* data/'
}
stage('Archive arifacts') {