This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Jenkinsfile
51 lines (50 loc) · 2.15 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
pipeline {
agent any
stages {
/* stage('Build MAT mat-fhir-services services') {
steps {
sh "cd ${WORKSPACE}/mat-fhir-services"
sh "mvn clean compile package -DskipTests"
}
}
stage('Build MAT cql-elm-translation services') {
steps {
sh "cd ${WORKSPACE}/cql-elm-translation"
sh "mvn clean compile package -DskipTests"
}
} */
stage('Build MAT qdm-qicore-mapping-services services') {
steps {
sh "cd ${WORKSPACE}/qdm-qicore-mapping-services"
sh "mvn clean compile package -DskipTests"
}
}
/* stage('Push mat-fhir-services to ECR') {
steps {
sh "sudo \$(aws ecr get-login --no-include-email --region us-east-1)"
sh "cd ${WORKSPACE}/mat-fhir-services"
sh "sudo docker build --build-arg JAR_FILE=target/*.jar -t ${ECR_REPO}/mat-fhir-services ."
sh "sudo docker tag ${ECR_REPO}/mat-fhir-services:latest ${ECR_URL}/${ECR_REPO}/mat-fhir-services:latest"
sh "sudo docker push ${ECR_URL}/${ECR_REPO}/mat-fhir-services:latest"
}
}
stage('Push cql-elm-translation to ECR') {
steps {
sh "sudo \$(aws ecr get-login --no-include-email --region us-east-1)"
sh "cd ${WORKSPACE}/cql-elm-translation"
sh "sudo docker build --build-arg JAR_FILE=target/*.jar -t ${ECR_REPO}/cql-elm-translation ."
sh "sudo docker tag ${ECR_REPO}/cql-elm-translation:latest ${ECR_URL}/${ECR_REPO}/cql-elm-translation:latest"
sh "sudo docker push ${ECR_URL}/${ECR_REPO}/cql-elm-translation:latest"
}
} */
stage('Push qdm-qicore-mapping-services to ECR') {
steps {
sh "sudo \$(aws ecr get-login --no-include-email --region us-east-1)"
sh "cd ${WORKSPACE}/qdm-qicore-mapping-services"
sh "sudo docker build --build-arg JAR_FILE=target/*.jar -t ${ECR_REPO}/qdm-qicore-mapping-services ."
// sh "sudo docker tag ${ECR_REPO}/qdm-qicore-mapping-services:latest ${ECR_URL}/${ECR_REPO}/qdm-qicore-mapping-services:latest"
// sh "sudo docker push ${ECR_URL}/${ECR_REPO}/qdm-qicore-mapping-services:latest"
}
}
}
}