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-04-19 19:54:21 +02:00
|
|
|
stage('Test') {
|
|
|
|
steps {
|
2023-04-19 19:57:12 +02:00
|
|
|
sh 'ls -l'
|
2023-04-19 20:20:59 +02:00
|
|
|
sh 'docker run wujt python3 create_dataset.py 89'
|
|
|
|
archiveArtifacts artifacts: 'waterQuality.csv'
|
2023-04-19 19:54:21 +02:00
|
|
|
}
|
|
|
|
}
|
2023-04-19 19:50:03 +02:00
|
|
|
}
|
2023-04-19 18:03:00 +02:00
|
|
|
}
|