ium_151636/Jenkinsfile

32 lines
731 B
Plaintext
Raw Normal View History

2023-05-11 20:49:42 +02:00
pipeline {
2023-05-11 20:55:07 +02:00
agent {
2023-05-11 22:48:45 +02:00
dockerfile true
2023-05-11 20:55:07 +02:00
}
2023-05-11 20:49:42 +02:00
stages {
2023-05-11 22:48:45 +02:00
2023-05-11 20:55:07 +02:00
stage('Run Script') {
2023-05-11 20:49:42 +02:00
steps {
2023-05-12 15:40:02 +02:00
//echo ("checkout: check out from version control")
//git "https://git.wmi.amu.edu.pl/s151636/ium_151636.git"
2023-05-11 20:49:42 +02:00
2023-05-12 15:40:02 +02:00
//echo ("sh: Shell Script")
//sh "python3 script2.py"
2023-05-11 20:49:42 +02:00
2023-05-12 15:40:02 +02:00
//echo ("copyArtifacts")
2023-05-11 20:49:42 +02:00
2023-05-12 15:40:02 +02:00
//echo("archiveArtifacts")
2023-05-12 15:51:03 +02:00
2023-05-12 20:14:49 +02:00
//echo ("run dockerfile")
2023-05-12 15:51:03 +02:00
//sh docker
2023-05-12 20:14:49 +02:00
echo("run data script")
sh "source docker_ium/bin/activate"
sh "python3 script2"
sh "deactivate"
2023-05-11 20:49:42 +02:00
}
}
}
}