提交 81c19030 authored 作者: husishuai's avatar husishuai

test

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