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

测试jfrog

上级 1942a5af
流水线 #364 已失败 于阶段
in 19 分 27 秒
......@@ -13,30 +13,30 @@ sonarqube-check:
only:
- master # or the name of your main branch
#jfrog-check:
#
# variables:
# ARTIFACTORY_URL: http://192.168.126.20:8082/
# ARTIFACTORY_USER: admin
# ARTIFACTORY_API_KEY: cmVmdGtuOjAxOjE3NDQzNjIxMzI6U0dSc2U3U0djeEZuN3Rqd3NlOENHRzdsVjRN
#
# before_script:
# # 添加配置 第四个参数: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 show
# # 生成配置
# - jfrog mvn-config
# # Replace the repository name in the configuration.yml to the correct one.
## - sed -i 's,MAVEN_REPO_KEY,'"$MAVEN_REPO_KEY"',g' configuration.yml
# script:
# # Run the MVN command
## - jfrog mvn clean -X
# - jfrog mvn install
# # Collect the environment variables
# - jf rt bce gitlabci-maven-artifactory $CI_JOB_ID
# # Pass the build information to Artifactory
# - jfrog rt bp gitlabci-maven-artifactory $CI_JOB_ID
# only:
# - master # or the name of your main branch
# - --url= --user=<USERNAME> --access-token=<ACCESS_TOKEN>
jfrog-check:
variables:
ARTIFACTORY_URL: http://192.168.1.114:8082/
ARTIFACTORY_USER: admin
ARTIFACTORY_API_KEY: cmVmdGtuOjAxOjE3NDQzNzkxODY6dkhGWFBJREMzcmhnUWhVeFdjQng4eWczYnlR
before_script:
# 添加配置 第四个参数: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 show
# 生成配置
- jfrog mvn-config
# Replace the repository name in the configuration.yml to the correct one.
# - sed -i 's,MAVEN_REPO_KEY,'"$MAVEN_REPO_KEY"',g' configuration.yml
script:
# Run the MVN command
# - jfrog mvn clean -X
- jfrog mvn install
# Collect the environment variables
- jfrog rt bce gitlabci-maven-artifactory $CI_JOB_ID
# Pass the build information to Artifactory
- jfrog rt bp gitlabci-maven-artifactory $CI_JOB_ID
only:
- master # or the name of your main branch
- --url= --user=<USERNAME> --access-token=<ACCESS_TOKEN>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论