代码拉取完成,页面将自动刷新
同步操作将从 UBML/metadata-service 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
stages:
- build
- test
- package
- deploy
variables:
# Maven
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true
# MAVEN_CONFIG: --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true -s .mvn/settings.xml
MAVEN_CONFIG: --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=false -s .mvn/settings.xml
MAVEN_USER_HOME: .mvn/
before_script:
- echo _auth=$(echo -n $ARTIFACTS_REPO_USERNAME:$ARTIFACTS_REPO_PASSWORD | base64) >> .npmrc
Build with Maven:
stage: build
tags:
- alicloud
except:
variables:
- $CI_COMMIT_MESSAGE =~ /^Helm debug:\ .*/
cache:
paths:
- .mvn/wrapper/maven-wrapper.jar
- .mvn/wrapper/dists/
- .mvn/repository/
image: openjdk:8-stretch
script:
- chmod a+x ./mvnw
- ./mvnw -DskipTests=true clean install
# artifacts:
# paths:
# - caf-boot-parent/target/app.jar
# expire_in: 10d
Run Java unit tests:
stage: test
tags:
- alicloud
except:
variables:
- $CI_COMMIT_MESSAGE =~ /^Helm debug:\ .*/
cache:
paths:
- .mvn/wrapper/maven-wrapper.jar
- .mvn/wrapper/dists/
- .mvn/repository/
services:
- name: redis:latest
alias: redis
- name: postgres:10
alias: postgres
image: openjdk:8-stretch
script:
- chmod a+x ./mvnw
- ./mvnw -U clean clover:setup test clover:aggregate clover:clover
- ./mvnw -Dmaven.clover.singleCloverDatabase=true clover:log
coverage: '/^ {8}Total\: (\d+%|\d+\.\d+%)/'
artifacts:
paths:
- target/site/clover
expire_in: 10d
dependencies: []
Package:
stage: package
tags:
- alicloud
only:
- main
- dev
cache:
paths:
- .mvn/wrapper/maven-wrapper.jar
- .mvn/wrapper/dists/
- .mvn/repository/
image: openjdk:8-stretch
script:
- chmod a+x ./mvnw
- ./mvnw -DskipTests=true clean deploy
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。