代码拉取完成,页面将自动刷新
variables:
# This will supress any download for dependencies and plugins or upload messages which would clutter the console log.
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
# As of Maven 3.3.0 instead of this you may define these options in `.mvn/maven.config` so the same config is used
# when running from the command line.
# `installAtEnd` and `deployAtEnd` are only effective with recent version of the corresponding plugins.
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
#定义全局缓存文件路径 ↓↓↓
cache:
paths:
- .m2/repository
#.validate: &validate
# stage: build
# script:
# - 'mvn $MAVEN_CLI_OPTS test-compile'
#.verify: &verify
# stage: test
# script:
# - 'mvn $MAVEN_CLI_OPTS verify site site:stage'
# except:
# - master
#检查JDK版本
#validate:jdk8:
# <<: *validate
# image: maven:3.3.9-jdk-8
#verify:jdk8:
# <<: *verify
# image: maven:3.3.9-jdk-8
# artifacts:
# paths:
# - target/staging
# image: maven:3.3.9-jdk-8
# 单元测试
junit:
stage: test
script:
# - 'mvn test'
# - 'mvn surefire-report:report'
- cd ..
- ls
- pwd
- ls
cache:
paths:
- binaries/
- .config
#错误视图(html) ↑↑↑
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。