Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitlab CI - switch to Gradle as backend builder #82

Merged
merged 2 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ variables:

include:
- "/ci/jobs/verif_image_checksum.yml"
- "/ci/jobs/build_projet_maven.yml"
- "/ci/jobs/build_projet_gradle.yml"
- "/ci/jobs/build_projet_npm.yml"
- "/ci/jobs/construction_image.yml"
- "/ci/jobs/dependency-check.yml"
Expand Down
19 changes: 19 additions & 0 deletions ci/jobs/build_projet_gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# TODO à adapter selon le projet
build_projet_gradle:
stage: build
image: gradle:8.5-jdk17
variables:
HTTP_PROXY: "http://172.27.229.197:8090"
HTTPS_PROXY: "http://172.27.229.197:8090"
NO_PROXY: "gitlab-sml.din.developpement-durable.gouv.fr,localhost,127.0.0.1,0.0.0.0,.dsi.damgm.i2"
script:
- cd backend
- chmod +x gradlew
- ./gradlew clean assemble -Dhttps.proxyHost=172.27.229.197 -Dhttps.proxyPort=8090
tags:
- build
artifacts:
name: "Gradle artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
when: on_success
paths:
- "backend/build/libs/rapportnav-${PROJECT_VERSION}.jar"
19 changes: 0 additions & 19 deletions ci/jobs/build_projet_maven.yml

This file was deleted.

4 changes: 2 additions & 2 deletions ci/jobs/construction_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ construction_image:
services:
- name: docker:20.10.5-dind
alias: dockerhost
entrypoint: ["sh", "-c", "dockerd-entrypoint.sh"]
entrypoint: [ "sh", "-c", "dockerd-entrypoint.sh" ]
script:
# TODO à adapter en fonction du projet
- docker build -f infra/docker/app/Dockerfile .
Expand All @@ -35,6 +35,6 @@ construction_image:
- build

needs:
- job: build_projet_maven
- job: build_projet_gradle
- job: build_projet_npm
artifacts: true
4 changes: 2 additions & 2 deletions ci/jobs/dependency-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dependency_check:
stage: analyze
image:
name: owasp/dependency-check:8.4.2
entrypoint: [""]
entrypoint: [ "" ]
variables:
HTTP_PROXY: "http://172.27.229.197:8090"
HTTPS_PROXY: "http://172.27.229.197:8090"
Expand All @@ -19,6 +19,6 @@ dependency_check:
- backend/target/dependency-check-report.html
- dependency-check-report.html
needs:
- job: build_projet_maven
- job: build_projet_gradle
- job: build_projet_npm
artifacts: true
Loading
Loading