Changed permission

This commit is contained in:
Wojciech Lidwin 2023-03-26 18:13:43 +02:00
parent d05bfb9828
commit 733ecd8cb7

4
Jenkinsfile vendored
View File

@ -3,7 +3,7 @@ node {
properties([ properties([
parameters([ parameters([
string( string(
defaultValue: 'damianrys', defaultValue: 'jaszwajcar',
description: 'Kaggle username', description: 'Kaggle username',
name: 'KAGGLE_USERNAME', name: 'KAGGLE_USERNAME',
trim: false trim: false
@ -25,8 +25,8 @@ node {
// Run the maven build // Run the maven build
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh "chmod +x -R ${env.WORKSPACE}"
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh '''kaggle datasets download -d sohier/crime-in-baltimore'''
sh './download_dataset.sh' sh './download_dataset.sh'
archiveArtifacts artifacts: 'baltimore_train.csv, baltimore_test.csv, baltimore_dev.csv' archiveArtifacts artifacts: 'baltimore_train.csv, baltimore_test.csv, baltimore_dev.csv'
} }