2023-03-25 13:38:35 +01:00
|
|
|
pipeline {
|
2023-04-05 22:10:14 +02:00
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Checkout') {
|
|
|
|
steps {
|
|
|
|
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487178/ium_s487178.git'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Build Docker image') {
|
|
|
|
steps {
|
|
|
|
sh 'docker build -t ium_s487178 -f dockerfile3 .'
|
|
|
|
}
|
|
|
|
}
|
2023-04-05 22:19:12 +02:00
|
|
|
|
2023-04-05 22:22:30 +02:00
|
|
|
stage('Run Python script') {
|
2023-04-05 22:10:14 +02:00
|
|
|
steps {
|
2023-04-05 22:22:30 +02:00
|
|
|
script {
|
|
|
|
docker.image('ium_s487178').inside {
|
2023-04-05 22:23:55 +02:00
|
|
|
sh 'python3 body_performance.py > output.txt'
|
2023-04-05 22:22:30 +02:00
|
|
|
}
|
|
|
|
archiveArtifacts 'output.txt'
|
|
|
|
}
|
2023-04-05 22:10:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-25 13:38:35 +01:00
|
|
|
}
|