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

测试jfrog

上级 6a0d223b
流水线 #290 已失败 于阶段
in 24 秒
......@@ -13,17 +13,17 @@ sonarqube-check:
only:
- master # or the name of your main branch
before_script:
# Install JFrog CLI
- curl -fL https://getcli.jfrog.io | sh
# Configure Artifactory instance with JFrog CLI
- ./jfrog rt config --url=http://192.168.126.20:8082/artifactory --user=admin --password=Admin123
- ./jfrog rt c show
# Set the M2_HOME environment variable
# - export M2_HOME=/usr/share/maven
# Replace the repository name in the configuration.yml to the correct one.
- sed -i 's,MAVEN_REPO_KEY,'"$MAVEN_REPO_KEY"',g' configuration.yml
build:
jfrog-check:
before_script:
# Install JFrog CLI
- curl -fL https://getcli.jfrog.io | sh
# Configure Artifactory instance with JFrog CLI
- ./jfrog rt config --url=http://192.168.126.20:8082/artifactory --user=admin --password=Admin123
- ./jfrog rt c show
# Set the M2_HOME environment variable
# - export M2_HOME=/usr/share/maven
# 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
- export JAVA_HOME=/data/jdk/jdk-17.0.7
......@@ -31,4 +31,6 @@ build:
# 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
\ No newline at end of file
- ./jfrog rt bp gitlabci-maven-artifactory $CI_JOB_ID
only:
- master # or the name of your main branch
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论