Loading .gitlab-ci.yml +18 −45 Original line number Diff line number Diff line # You can copy and paste this template into a new `.gitlab-ci.yml` file. # You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword. # To contribute improvements to CI/CD templates, please follow the Development guide at: # https://docs.gitlab.com/ee/development/cicd/templates.html # This specific template is located at: # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Gradle.gitlab-ci.yml # included templates include: # Gradle template - project: "to-be-continuous/gradle" ref: "2.2" file: "templates/gitlab-ci-gradle.yml" # This is the Gradle build system for JVM applications # https://gradle.org/ # https://github.com/gradle/gradle image: gradle:alpine before_script: - GRADLE_USER_HOME="$(pwd)/.gradle" - export GRADLE_USER_HOME build: tags: - amd64 stage: build script: gradle --build-cache assemble cache: key: "$CI_COMMIT_REF_NAME" policy: push paths: # your pipeline stages stages: - build - .gradle test: tags: - amd64 stage: test script: gradle check cache: key: "$CI_COMMIT_REF_NAME" policy: pull paths: - build - .gradle deploy: tags: - amd64 stage: deploy script: echo "Define your deployment script!" environment: production No newline at end of file - test - package-build - package-test - infra - deploy - acceptance - publish - infra-prod - production No newline at end of file Loading
.gitlab-ci.yml +18 −45 Original line number Diff line number Diff line # You can copy and paste this template into a new `.gitlab-ci.yml` file. # You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword. # To contribute improvements to CI/CD templates, please follow the Development guide at: # https://docs.gitlab.com/ee/development/cicd/templates.html # This specific template is located at: # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Gradle.gitlab-ci.yml # included templates include: # Gradle template - project: "to-be-continuous/gradle" ref: "2.2" file: "templates/gitlab-ci-gradle.yml" # This is the Gradle build system for JVM applications # https://gradle.org/ # https://github.com/gradle/gradle image: gradle:alpine before_script: - GRADLE_USER_HOME="$(pwd)/.gradle" - export GRADLE_USER_HOME build: tags: - amd64 stage: build script: gradle --build-cache assemble cache: key: "$CI_COMMIT_REF_NAME" policy: push paths: # your pipeline stages stages: - build - .gradle test: tags: - amd64 stage: test script: gradle check cache: key: "$CI_COMMIT_REF_NAME" policy: pull paths: - build - .gradle deploy: tags: - amd64 stage: deploy script: echo "Define your deployment script!" environment: production No newline at end of file - test - package-build - package-test - infra - deploy - acceptance - publish - infra-prod - production No newline at end of file