Update Jenkinsfile_stats - class 4
This commit is contained in:
parent
ac3fa8bca2
commit
f1f90075d7
@ -1,20 +1,20 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
docker { image 'zollinka/ium:latest' }
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('copyArtifacts') {
|
stage('Sh script') {
|
||||||
steps {
|
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') {
|
stage('Archive artifacts') {
|
||||||
steps {
|
steps{
|
||||||
sh 'chmod +x jenkins_stats_script.sh'
|
archiveArtifacts artifacts: 'netflix_stats.txt'
|
||||||
sh './jenkins_stats_script.sh'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('archiveArtifacts') {
|
|
||||||
steps {
|
|
||||||
archiveArtifacts 'dataset-stats.txt'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user