提交 5b8eaf65 authored 作者: husishuai's avatar husishuai

test7

上级 c9c63516
流水线 #351 已失败 于阶段
in 5 分 26 秒
...@@ -22,19 +22,19 @@ jfrog-check: ...@@ -22,19 +22,19 @@ jfrog-check:
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 - jfrog c add maven --url=$ARTIFACTORY_URL --user=$ARTIFACTORY_USER --access-token=$ARTIFACTORY_API_KEY --interactive=false --insecure-tls=true --overwrite=true
# 查看配置 # 查看配置
- jf c show - jfrog c show
# 生成配置 # 生成配置
- jf 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
- jf mvn clean - jfrog mvn clean
- jf mvn install - jfrog mvn install
# Collect the environment variables # Collect the environment variables
- jf rt bce artifactory-build-info $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 artifactory-build-info $CI_JOB_ID - jfrog rt bp artifactory-build-info $CI_JOB_ID
only: only:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论