Update Jenkinsfile - save artifacts
This commit is contained in:
parent
245c4a04f9
commit
ac3fa8bca2
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -1,8 +1,5 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent { dockerfile
|
agent { dockerfile true}
|
||||||
{
|
|
||||||
args 'ti'
|
|
||||||
}}
|
|
||||||
|
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
@ -10,15 +7,15 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
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 jenkins_script.sh'
|
sh 'chmod +x run.sh'
|
||||||
sh './jenkins_script.sh'
|
sh './run.sh > netflix_stats.txt'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Archive artifacts') {
|
stage('Archive artifacts') {
|
||||||
steps{
|
steps{
|
||||||
archiveArtifacts artifacts: 'netflix_split_*.csv'
|
archiveArtifacts artifacts: 'netflix_stats.txt'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user