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

test2

上级 85964844
流水线 #345 已失败 于阶段
in 39 秒
......@@ -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
# ARTIFACTORY_USER: admin
# ARTIFACTORY_API_KEY: cmVmdGtuOjAxOjE3NDM5OTQzMTU6OG05alhCYlJoTlc5T1pYbkdOdmRQRFZnMzZU
#
# before_script:
# # 添加配置 第四个参数:maven,为jfrog中我创建的Repositories里的一个目标名称 overwrite:如果存在则覆盖 insecure-tls:不校验ssl interactive:不使用交互式
# - jf c add maven --url=$ARTIFACTORY_URL --user=$ARTIFACTORY_USER --access-token=$ARTIFACTORY_API_KEY --interactive=false --insecure-tls=true --overwrite=true
# # 查看配置
# - jf c show
# # 生成配置
# - jf 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
# - jf mvn clean
# - jf mvn install
# # Collect the environment variables
# - jf rt bce gitlabci-maven-artifactory $CI_JOB_ID
# # Pass the build information to Artifactory
# - jf 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.126.20:8082/artifactory
ARTIFACTORY_USER: admin
ARTIFACTORY_API_KEY: cmVmdGtuOjAxOjE3NDM5OTQzMTU6OG05alhCYlJoTlc5T1pYbkdOdmRQRFZnMzZU
before_script:
# 添加配置 第四个参数:maven,为jfrog中我创建的Repositories里的一个目标名称 overwrite:如果存在则覆盖 insecure-tls:不校验ssl interactive:不使用交互式
- jf c add maven --url=$ARTIFACTORY_URL --user=$ARTIFACTORY_USER --access-token=$ARTIFACTORY_API_KEY --interactive=false --insecure-tls=true --overwrite=true
# 查看配置
- jf c show
# 生成配置
- jf 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
- jf mvn clean
- jf mvn install
# Collect the environment variables
- jf rt bce gitlabci-maven-artifactory $CI_JOB_ID
# Pass the build information to Artifactory
- jf 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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论