ium_s487182/Jenkinsfile-Docker

33 lines
719 B
Plaintext
Raw Normal View History

2023-04-19 19:54:21 +02:00
pipeline {
2023-04-19 20:12:36 +02:00
2023-04-19 20:14:21 +02:00
agent any
2023-04-19 19:54:21 +02:00
stages {
2023-04-19 20:12:36 +02:00
stage('Build Image') {
steps {
2023-04-19 20:20:59 +02:00
sh 'docker build -t wujt -f Dockerfile .'
2023-04-19 20:12:36 +02:00
}
}
2023-06-17 20:13:39 +02:00
stage('Create Dataset') {
2023-04-19 19:54:21 +02:00
steps {
2023-04-19 19:57:12 +02:00
sh 'ls -l'
2023-06-17 20:33:28 +02:00
sh 'docker run wujt python3 create_dataset.py 89'
2023-04-19 20:20:59 +02:00
archiveArtifacts artifacts: 'waterQuality.csv'
2023-04-19 19:54:21 +02:00
}
}
2023-06-17 20:13:39 +02:00
stage('Train') {
steps {
sh 'ls -l'
2023-06-17 20:22:26 +02:00
sh 'docker run wujt python3 train.py'
2023-06-17 20:13:39 +02:00
}
}
stage('Prediction') {
steps {
sh 'ls -l'
2023-06-17 20:22:26 +02:00
sh 'docker run wujt python3 pred.py'
2023-06-17 20:35:39 +02:00
sh 'echo predictionResults.txt'
archiveArtifacts artifacts: 'predictionResults.txt'
2023-06-17 20:13:39 +02:00
}
}
2023-04-19 19:50:03 +02:00
}
2023-04-19 18:03:00 +02:00
}