ium_470607/lab2/Jenkinsfile_dataset_stats

24 lines
489 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:05:17 +02:00
cat /etc/issue
2021-04-11 13:01:37 +02:00
ls -lah
2021-04-11 13:05:17 +02:00
python3 lab3/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'
}
}
}
}