Commit f7bcafcd by jenkins

new add gitlab-ci file

parent 2350a2dd
Pipeline #19904 failed with stage
in 17 seconds
stages:
- test
variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
CI_BRANCH: develop
CI_PROJECT: open-store
CI_LANGUAGE: java
cache:
paths:
- .m2/repository/
- .koderover
analyze:
stage: test
image: maven3.3.9:sonar6.76-scanner3.2
script:
- mvn $MAVEN_OPTS clean org.jacoco:jacoco-maven-plugin:prepare-agent -f ./pom.xml -Dspring.profiles.active=dev
install org.jacoco:jacoco-maven-plugin:report -Dmaven.test.failure.ignore=true -Dmaven.test.skip=true
- mvn $MAVEN_OPTS compile -f ./pom.xml -Dspring.profiles.active=dev -Dmaven.test.skip=true
sonar:sonar
-Dsonar.host.url=http://10.10.3.49:9000
-Dsonar.login=ac9511e5a6cfc89d2b8c41abb6be0990a4140a96
-Dsonar.gitlab.project_id=$CI_PROJECT_ID
-Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA
-Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME
- curl -s 'http://koderover.sandload.cn/api/ac/bash?token=q5iZW8atIJtzH7qm' | CI_PROJECT=$CI_PROJECT CI_BRANCH=$CI_BRANCH CI_LANGUAGE=$CI_LANGUAGE bash
only:
- develop
tags:
- gitlab-runner-two
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment