ium_s487178/Jenkinsfile
2023-04-05 22:30:44 +02:00

28 lines
637 B
Groovy

pipeline {
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 .'
}
}
stage('Run command in Docker container') {
steps {
sh 'docker run ium_s487178 python3 ./body_performance.py > output.txt'
}
}
}
post {
always {
archiveArtifacts 'output.txt'
}
}
}