Add ci #2
2 changed files with 20 additions and 3 deletions
|
|
@ -59,8 +59,8 @@ cache:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
|
||||||
# Verify merge requests using JDK8
|
# Verify merge requests using jdk17
|
||||||
verify:jdk8:
|
verify:jdk17:
|
||||||
extends:
|
extends:
|
||||||
- .verify
|
- .verify
|
||||||
|
|
||||||
|
|
@ -68,7 +68,7 @@ verify:jdk8:
|
||||||
# For deploying packages to GitLab's Maven Repository: See https://docs.gitlab.com/ee/user/packages/maven_repository/index.html#create-maven-packages-with-gitlab-cicd for more details.
|
# For deploying packages to GitLab's Maven Repository: See https://docs.gitlab.com/ee/user/packages/maven_repository/index.html#create-maven-packages-with-gitlab-cicd for more details.
|
||||||
# Please note: The GitLab Maven Repository is currently only available in GitLab Premium / Ultimate.
|
# Please note: The GitLab Maven Repository is currently only available in GitLab Premium / Ultimate.
|
||||||
# For `master` or `main` branch run `mvn deploy` automatically.
|
# For `master` or `main` branch run `mvn deploy` automatically.
|
||||||
deploy:jdk8:
|
deploy:jdk17:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- if [ ! -f ci_settings.xml ]; then
|
- if [ ! -f ci_settings.xml ]; then
|
||||||
|
|
|
||||||
17
pom.xml
17
pom.xml
|
|
@ -124,6 +124,23 @@
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>gitlab-maven</id>
|
||||||
|
<url>${env.CI_SERVER_URL}/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>gitlab-maven</id>
|
||||||
|
<url>${env.CI_SERVER_URL}/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url>
|
||||||
|
</repository>
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>gitlab-maven</id>
|
||||||
|
<url>${env.CI_SERVER_URL}/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
</distributionManagement>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
<id>native</id>
|
<id>native</id>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue