Update Jenkinsfile_stats - test scripted
This commit is contained in:
parent
77a03ecfca
commit
415b36b53c
@ -1,23 +1,11 @@
|
|||||||
pipeline {
|
node {
|
||||||
agent {docker { image 'zollinka/ium:latest' }}
|
docker.image('zollinka/ium:latest').withRun('-t') { c ->
|
||||||
|
docker.image('zollinka/ium:latest').inside {
|
||||||
stages {
|
stage('Test') {
|
||||||
stage('Sh script') {
|
sh 'cat /etc/issue'
|
||||||
steps {
|
sh 'ls -lah'
|
||||||
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'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sh 'docker logs ${c.id}'
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user