-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
29 lines (27 loc) · 1 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 lmsImage = docker.build("frontend:${env.BUILD_NUMBER}", "-f ./Dockerfile-prod .")
lmsImage.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/frontend:${env.BUILD_NUMBER}", ports: '80', service: 'GPHD/frontend', timeout: 60
}
}
}
}
}