Edit Jenkinsfile to save result of bash scrit as an artifact

This commit is contained in:
s487179 2023-04-14 11:28:26 +02:00
parent 7102ae9b09
commit f08e18d884
2 changed files with 6 additions and 0 deletions

5
Jenkinsfile vendored
View File

@ -24,6 +24,11 @@ pipeline {
sh './datasetScript.sh'
}
}
}
stage('Archive file') {
steps {
archiveArtifacts artifacts: 'dataset.csv', fingerprint: true
}
}
}
}

View File

@ -4,3 +4,4 @@ kaggle datasets download -d rishikeshkonapure/home-loan-approval
unzip -o home-loan-approval.zip
cat loan_sanction_test.csv loan_sanction_train.csv > loan_sanction.csv
head -n 5 loan_sanction.csv
{head -n 1 loan_sanction.csv && tail -n +2 loan_sanction.csv | shuf;} > loan_sanction_shuffled.csv