-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
29 lines (27 loc) · 1018 Bytes
/
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("pacerjobmanagementsystem:1.0", "-f ./Dockerfile .")
lmsImage.push('latest')
}
}
}
}
//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/pacerjobmanagementsystem:latest', ports: '', service: 'PACER/jobmanagementsystem', timeout: 60
}
}
}
}
}