Update Jenkinsfile_stats - class 4

This commit is contained in:
Zofia Galla 2021-04-11 14:54:43 +02:00
parent ac3fa8bca2
commit f1f90075d7

View File

@ -1,20 +1,20 @@
pipeline {
agent any
docker { image 'zollinka/ium:latest' }
stages {
stage('copyArtifacts') {
stage('Sh script') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434684-create-dataset', selector: buildParameter('CREATE_DATASET_BUILD_SELECTOR')
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'chmod +x run.sh'
sh './run.sh > netflix_stats.txt'
}
}
}
stage('script stats') {
steps {
sh 'chmod +x jenkins_stats_script.sh'
sh './jenkins_stats_script.sh'
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'dataset-stats.txt'
stage('Archive artifacts') {
steps{
archiveArtifacts artifacts: 'netflix_stats.txt'
}
}
}