提交 cb59ada0 authored 作者: husishuai's avatar husishuai

test5

上级 07cadb6e
流水线 #362 已通过 于阶段
in 1 秒
...@@ -13,30 +13,30 @@ sonarqube-check: ...@@ -13,30 +13,30 @@ sonarqube-check:
only: only:
- master # or the name of your main branch - master # or the name of your main branch
jfrog-check: #jfrog-check:
#
variables: # variables:
ARTIFACTORY_URL: http://192.168.126.20:8082/ # ARTIFACTORY_URL: http://192.168.126.20:8082/
ARTIFACTORY_USER: admin # ARTIFACTORY_USER: admin
ARTIFACTORY_API_KEY: cmVmdGtuOjAxOjE3NDQzNjIxMzI6U0dSc2U3U0djeEZuN3Rqd3NlOENHRzdsVjRN # ARTIFACTORY_API_KEY: cmVmdGtuOjAxOjE3NDQzNjIxMzI6U0dSc2U3U0djeEZuN3Rqd3NlOENHRzdsVjRN
#
before_script: # before_script:
# 添加配置 第四个参数:maven,为jfrog中我创建的Repositories里的一个目标名称 overwrite:如果存在则覆盖 insecure-tls:不校验ssl interactive:不使用交互式 # # 添加配置 第四个参数:maven,为jfrog中我创建的Repositories里的一个目标名称 overwrite:如果存在则覆盖 insecure-tls:不校验ssl interactive:不使用交互式
- jfrog c add maven --url=$ARTIFACTORY_URL --user=$ARTIFACTORY_USER --access-token=$ARTIFACTORY_API_KEY --interactive=false --insecure-tls=true --overwrite=true # - jfrog c add maven --url=$ARTIFACTORY_URL --user=$ARTIFACTORY_USER --access-token=$ARTIFACTORY_API_KEY --interactive=false --insecure-tls=true --overwrite=true
# 查看配置 # # 查看配置
- jfrog c show # - jfrog c show
# 生成配置 # # 生成配置
- jfrog mvn-config # - jfrog mvn-config
# Replace the repository name in the configuration.yml to the correct one. # # Replace the repository name in the configuration.yml to the correct one.
# - sed -i 's,MAVEN_REPO_KEY,'"$MAVEN_REPO_KEY"',g' configuration.yml ## - sed -i 's,MAVEN_REPO_KEY,'"$MAVEN_REPO_KEY"',g' configuration.yml
script: # script:
# Run the MVN command # # Run the MVN command
# - jfrog mvn clean -X ## - jfrog mvn clean -X
- jfrog mvn install # - jfrog mvn install
# Collect the environment variables # # Collect the environment variables
- jf rt bce gitlabci-maven-artifactory $CI_JOB_ID # - jf rt bce gitlabci-maven-artifactory $CI_JOB_ID
# Pass the build information to Artifactory # # Pass the build information to Artifactory
- jfrog rt bp gitlabci-maven-artifactory $CI_JOB_ID # - jfrog rt bp gitlabci-maven-artifactory $CI_JOB_ID
only: # only:
- master # or the name of your main branch # - master # or the name of your main branch
- --url= --user=<USERNAME> --access-token=<ACCESS_TOKEN> # - --url= --user=<USERNAME> --access-token=<ACCESS_TOKEN>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论