Fetch the repository succeeded.
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
build1:
stage: build
only:
- /^develop.*$/
- /^release.*$/
script:
- echo "git clone success!"
- if [[ "${CI_COMMIT_REF_NAME}" == "release"* ]]; then sh autotag.sh ${CI_PROJECT_ID} ${CI_COMMIT_SHA}; fi;
deploy1:
stage: deploy
only:
- /^develop.*$/
- /^release.*$/
script:
- export ENV_NAME="develop";
- if [[ "${CI_COMMIT_REF_NAME}" == "release"* ]]; then ENV_NAME="release"; fi;
- mvn deploy -e --settings /home/gitlab-runner/.m2/settings.xml -P${ENV_NAME}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。