Revert to before test Jenkinsfile
This commit is contained in:
parent
4b760ec23e
commit
6afa5af940
@ -1,11 +1,21 @@
|
|||||||
node {
|
pipeline {
|
||||||
docker.image('zollinka/ium:latest').withRun('-t') { c ->
|
agent {docker { image 'zollinka/ium:latest' }}
|
||||||
docker.image('zollinka/ium:latest').inside {
|
|
||||||
stage('Test') {
|
stages {
|
||||||
sh 'cat /etc/issue'
|
stage('Sh script') {
|
||||||
sh 'ls -lah'
|
steps {
|
||||||
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||||
|
sh 'chmod +x run.sh'
|
||||||
|
sh './run.sh > netflix_stats.txt'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Archive artifacts') {
|
||||||
|
steps{
|
||||||
|
archiveArtifacts artifacts: 'netflix_stats.txt'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sh 'docker logs ${c.id}'
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user