2 Star 0 Fork 1

ace-platform/choerodon-hap-framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.gitlab-ci.yml 1.60 KB
一键复制 编辑 原始数据 按行查看 历史
xausky 提交于 2019-07-30 16:13 . [UPD] 更新CI
image: registry.cn-hangzhou.aliyuncs.com/choerodon-tools/cibase:0.5.0
stages:
- mvn-package
- maven-deploy
maven-test-branches:
stage: mvn-package
script:
- git_merge master
- mvn clean package source:jar -DskipTests=true
only:
- branches
except:
- master
- tags
- /^release-.*$/
- /^hotfix-.*$/
maven-test-build:
stage: mvn-package
script:
- update_pom_version
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install -Dmaven.test.failure.ignore=true -DskipTests=false -U
- mvn --batch-mode verify sonar:sonar -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_LOGIN -Dsonar.gitlab.project_id=$CI_PROJECT_PATH -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -Dsonar.analysis.serviceGroup=$GROUP_NAME -Dsonar.analysis.commitId=$CI_COMMIT_SHA -Dsonar.projectKey=$GROUP_NAME:$PROJECT_NAME
only:
- master
- tags
- /^release-.*$/
- /^hotfix-.*$/
maven-deploy-choerodon:
stage: maven-deploy
script:
- mvn clean package source:jar -DskipTests=true deploy -DaltDeploymentRepository=${CHOERODON_REPOSITORY_ID}::default::${CHOERODON_REPOSITORY_URL}
only:
- master
- tags
- /^release-.*$/
.auto_devops: &auto_devops |
curl -o .auto_devops.sh \
"${CHOERODON_URL}/devops/ci?token=${Token}&type=lib"
source .auto_devops.sh
function git_merge(){
git config user.name ${GITLAB_USER_NAME}
git config user.email ${GITLAB_USER_EMAIL}
git checkout origin/${1:-"master"}
git merge ${CI_COMMIT_SHA} --no-commit --no-ff
}
before_script:
- *auto_devops
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ace-platform/choerodon-hap-framework.git
[email protected]:ace-platform/choerodon-hap-framework.git
ace-platform
choerodon-hap-framework
choerodon-hap-framework
master

搜索帮助