ium_470607/lab2/Jenkinsfile_dataset_stats

23 lines
449 B
Plaintext
Raw Normal View History

2021-03-28 17:41:49 +02:00
pipeline {
2021-04-11 12:37:27 +02:00
agent {
docker {
2021-04-11 12:43:20 +02:00
image 'kubakonieczny/ium:v1.0'
2021-04-11 12:37:27 +02:00
}
2021-03-28 18:33:07 +02:00
}
2021-03-28 17:41:49 +02:00
stages {
2021-04-11 12:37:27 +02:00
stage('docker') {
2021-03-28 17:41:49 +02:00
steps {
2021-04-11 12:37:27 +02:00
sh '''
2021-04-11 13:01:37 +02:00
ls -lah
2021-04-11 12:52:32 +02:00
python3 python_script.py >> stats.txt
2021-04-11 12:37:27 +02:00
'''
2021-03-28 17:41:49 +02:00
}
}
stage('archive artifacts') {
steps {
archiveArtifacts 'stats.txt'
}
}
}
}