ium_434684/Jenkinsfile_stats

23 lines
485 B
Plaintext

pipeline {
agent {docker { image 'zollinka/ium:latest' }}
stages {
stage('Sh script') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'chmod +x run.sh'
sh '''ls -lah
cat /etc/issue'''
sh './run.sh > netflix_stats.txt'
}
}
}
stage('Archive artifacts') {
steps{
archiveArtifacts artifacts: 'netflix_stats.txt'
}
}
}
}