Update 'Jenkinsfile-Docker'
This commit is contained in:
parent
7a4759e8b1
commit
3059d0378b
@ -8,12 +8,25 @@ stages {
|
||||
sh 'docker build -t wujt -f Dockerfile .'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
stage('Create Dataset') {
|
||||
steps {
|
||||
sh 'ls -l'
|
||||
sh 'docker run wujt python3 create_dataset.py 89'
|
||||
archiveArtifacts artifacts: 'waterQuality.csv'
|
||||
}
|
||||
}
|
||||
stage('Train') {
|
||||
steps {
|
||||
sh 'ls -l'
|
||||
sh 'docker run wujt python3 train.py 89'
|
||||
}
|
||||
}
|
||||
stage('Prediction') {
|
||||
steps {
|
||||
sh 'ls -l'
|
||||
sh 'docker run wujt python3 pred.py 89'
|
||||
archiveArtifacts artifacts: 'predictionResults1.csv'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user