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