Skip to content

Commit

Permalink
Fixed Backend-Build-Versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Krayaty committed Apr 16, 2021
1 parent dfd5939 commit 462874a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
</configuration>
</plugin>
</plugins>
<finalName>${project.artifactId}-${project.version}.${buildNumber}</finalName>
<finalName>${project.artifactId}-${project.version}.${env.CODEBUILD_BUILD_NUMBER}</finalName>
</build>

</project>
6 changes: 5 additions & 1 deletion buildspecBE.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
version: 0.2

env:
variables:
BUILD_NUMBER:

phases:
install:
commands:
Expand All @@ -19,5 +23,5 @@ phases:
- echo Build completed on `date`
artifacts:
files:
- backend/target/bffl-backend-1.0.{{buildNumber}}.jar
- backend/target/bffl-backend-1.0.$CODEBUILD_BUILD_NUMBER.jar
discard-paths: yes

0 comments on commit 462874a

Please sign in to comment.