File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 0.2
2
+
3
+ phases :
4
+ install :
5
+ runtime-versions :
6
+ java : corretto8
7
+ pre_build :
8
+ commands :
9
+ - echo Initializing environment
10
+ - export CODEARTIFACT_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain nextwork --domain-owner REMOVED --region us-east-2 --query authorizationToken --output text`
11
+
12
+ build :
13
+ commands :
14
+ - echo Build started on `date`
15
+ - mvn -s settings.xml compile
16
+ post_build :
17
+ commands :
18
+ - echo Build completed on `date`
19
+ - mvn -s settings.xml package
20
+ artifacts :
21
+ files :
22
+ - target/nextwork-web-project.war
23
+ discard-paths : no
Original file line number Diff line number Diff line change
1
+ <settings >
2
+ <servers >
3
+ <server >
4
+ <id >nextwork-devops-cicd-code-artifact-domain-NextWork-DevOps-CICD-CodeArtifact</id >
5
+ <username >aws</username >
6
+ <password >${env.CODEARTIFACT_AUTH_TOKEN}</password >
7
+ </server >
8
+ </servers >
9
+
10
+ <profiles >
11
+ <profile >
12
+ <id >nextwork-devops-cicd-code-artifact-domain-NextWork-DevOps-CICD-CodeArtifact</id >
13
+ <activation >
14
+ <activeByDefault >true</activeByDefault >
15
+ </activation >
16
+ <repositories >
17
+ <repository >
18
+ <id >nextwork-devops-cicd-code-artifact-domain-NextWork-DevOps-CICD-CodeArtifact</id >
19
+ <url >https://nextwork-devops-cicd-code-artifact-domain-REMOVED.d.codeartifact.us-east-2.amazonaws.com/maven/NextWork-DevOps-CICD-CodeArtifact/</url >
20
+ </repository >
21
+ </repositories >
22
+ </profile >
23
+ </profiles >
24
+
25
+ <mirrors >
26
+ <mirror >
27
+ <id >nextwork-devops-cicd-code-artifact-domain-NextWork-DevOps-CICD-CodeArtifact</id >
28
+ <name >nextwork-devops-cicd-code-artifact-domain-NextWork-DevOps-CICD-CodeArtifact</name >
29
+ <url >https://nextwork-devops-cicd-code-artifact-domain-REMOVED.d.codeartifact.us-east-2.amazonaws.com/maven/NextWork-DevOps-CICD-CodeArtifact/</url >
30
+ <mirrorOf >*</mirrorOf >
31
+ </mirror >
32
+ </mirrors >
33
+ </settings >
You can’t perform that action at this time.
0 commit comments