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

测试jfrog

上级 c48a3c46
流水线 #330 已失败 于阶段
in 32 秒
...@@ -14,7 +14,17 @@ sonarqube-check: ...@@ -14,7 +14,17 @@ sonarqube-check:
- master # or the name of your main branch - master # or the name of your main branch
jfrog-check: jfrog-check:
variables:
ARTIFACTORY_URL: http://192.168.126.20:8082/artifactory
ARTIFACTORY_USER: admin
ARTIFACTORY_API_KEY: cmVmdGtuOjAxOjE3NDM5OTQzMTU6OG05alhCYlJoTlc5T1pYbkdOdmRQRFZnMzZU
before_script: before_script:
- jf rt config --url="$ARTIFACTORY_URL" --user="$ARTIFACTORY_USER" --access-token="$ARTIFACTORY_API_KEY"
- jf mvn-config --server-id-prefix=my-server-prefix --interactive=false
# Install JFrog CLI # Install JFrog CLI
# - curl -fL https://getcli.jfrog.io | sh # - curl -fL https://getcli.jfrog.io | sh
# Configure Artifactory instance with JFrog CLI # Configure Artifactory instance with JFrog CLI
...@@ -23,7 +33,7 @@ jfrog-check: ...@@ -23,7 +33,7 @@ jfrog-check:
# Set the M2_HOME environment variable # Set the M2_HOME environment variable
# - export M2_HOME=/usr/share/maven # - export M2_HOME=/usr/share/maven
# 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
# - export JAVA_HOME=/data/jdk/jdk-17.0.7 # - export JAVA_HOME=/data/jdk/jdk-17.0.7
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论