-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathJenkinsfile
29 lines (27 loc) · 1.02 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env groovy
pipeline{
agent any
//Define stages for the build process
stages{
//Define the deploy stage
stage('Deploy'){
steps{
script{
docker.withRegistry('https://gt-build.hdap.gatech.edu'){
//Build and push the database image
def smartPgImage = docker.build("smartpostgre:${env.BUILD_NUMBER}", "-f ./Dockerfile .")
smartPgImage.push("${env.BUILD_NUMBER}")
}
}
}
}
//Define stage to notify rancher
stage('Notify'){
steps{
script{
rancher confirm: true, credentialId: 'gt-rancher-server', endpoint: 'https://gt-rancher.hdap.gatech.edu/v2-beta', environmentId: '1a7', environments: '', image: "gt-build.hdap.gatech.edu/smartpostgre:${env.BUILD_NUMBER}", ports: '', service: 'GT-FHIR-2/smart-postgres', timeout: 60
}
}
}
}
}