ium_434684/Jenkinsfile

22 lines
408 B
Plaintext
Raw Normal View History

2021-03-22 12:48:56 +01:00
pipeline {
2021-04-11 21:13:26 +02:00
agent any
2021-03-22 12:55:30 +01:00
2021-03-22 12:48:56 +01:00
stages {
2021-03-28 17:40:07 +02:00
stage('Sh script') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
2021-04-11 14:02:07 +02:00
sh 'chmod +x run.sh'
sh './run.sh > netflix_stats.txt'
2021-03-28 17:40:07 +02:00
}
}
}
stage('Archive artifacts') {
2021-03-28 17:44:11 +02:00
steps{
2021-04-11 14:02:07 +02:00
archiveArtifacts artifacts: 'netflix_stats.txt'
2021-03-28 17:44:11 +02:00
}
2021-03-28 17:40:07 +02:00
}
2021-03-22 12:48:56 +01:00
}
}