更新 .gitea/workflows/dev.yml
Some checks failed
/ build-parent-pom (push) Failing after 1m50s
/ build-common-modules (push) Has been skipped
/ build-and-push-services (ruoyi-auth) (push) Has been skipped
/ build-and-push-services (ruoyi-gateway) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/Property) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/Sis) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/ruoyi-gen) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/ruoyi-job) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/ruoyi-resource) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/ruoyi-system) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/ruoyi-workflow) (push) Has been skipped
/ build-and-push-services (ruoyi-seata-server) (push) Has been skipped
/ build-and-push-services (ruoyi-sentinel-dashboard) (push) Has been skipped
/ build-and-push-services (ruoyi-snailjob-server) (push) Has been skipped
/ build-and-push-services (ruoyi-visual/ruoyi-monitor) (push) Has been skipped
/ build-and-push-services (ruoyi-visual/ruoyi-nacos) (push) Has been skipped
Some checks failed
/ build-parent-pom (push) Failing after 1m50s
/ build-common-modules (push) Has been skipped
/ build-and-push-services (ruoyi-auth) (push) Has been skipped
/ build-and-push-services (ruoyi-gateway) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/Property) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/Sis) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/ruoyi-gen) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/ruoyi-job) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/ruoyi-resource) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/ruoyi-system) (push) Has been skipped
/ build-and-push-services (ruoyi-modules/ruoyi-workflow) (push) Has been skipped
/ build-and-push-services (ruoyi-seata-server) (push) Has been skipped
/ build-and-push-services (ruoyi-sentinel-dashboard) (push) Has been skipped
/ build-and-push-services (ruoyi-snailjob-server) (push) Has been skipped
/ build-and-push-services (ruoyi-visual/ruoyi-monitor) (push) Has been skipped
/ build-and-push-services (ruoyi-visual/ruoyi-nacos) (push) Has been skipped
This commit is contained in:
@@ -61,46 +61,6 @@ jobs:
|
|||||||
</settings>
|
</settings>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: 手动安装必要BOM依赖
|
|
||||||
run: |
|
|
||||||
mkdir -p /tmp/maven-dependencies
|
|
||||||
|
|
||||||
declare -A BOM_ARTIFACTS=(
|
|
||||||
["ruoyi-common-alibaba-bom"]="2.4.0"
|
|
||||||
["ruoyi-common-bom"]="2.4.0"
|
|
||||||
["ruoyi-api-bom"]="2.4.0"
|
|
||||||
)
|
|
||||||
|
|
||||||
for artifact in "${!BOM_ARTIFACTS[@]}"; do
|
|
||||||
version=${BOM_ARTIFACTS[$artifact]}
|
|
||||||
group_id="org.dromara"
|
|
||||||
local_path="$HOME/.m2/repository/${group_id//.//}/$artifact/$version/$artifact-$version.pom"
|
|
||||||
|
|
||||||
if [ -f "$local_path" ]; then
|
|
||||||
echo "本地已存在 $artifact:$version,跳过"
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
repos=(
|
|
||||||
"https://maven.aliyun.com/repository/public"
|
|
||||||
)
|
|
||||||
|
|
||||||
downloaded=false
|
|
||||||
for repo in "${repos[@]}"; do
|
|
||||||
url="$repo/${group_id//.//}/$artifact/$version/$artifact-$version.pom"
|
|
||||||
if wget -q -O "/tmp/maven-dependencies/$artifact-$version.pom" "$url"; then
|
|
||||||
"$MAVEN_HOME/bin/mvn" install:install-file \
|
|
||||||
-Dfile="/tmp/maven-dependencies/$artifact-$version.pom" \
|
|
||||||
-DgroupId="$group_id" \
|
|
||||||
-DartifactId="$artifact" \
|
|
||||||
-Dversion="$version" \
|
|
||||||
-Dpackaging=pom
|
|
||||||
downloaded=true
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: 构建主POM(仅本地安装,不上传)
|
- name: 构建主POM(仅本地安装,不上传)
|
||||||
run: |
|
run: |
|
||||||
MAIN_POM_ABSOLUTE_PATH="${GITHUB_WORKSPACE}/pom.xml"
|
MAIN_POM_ABSOLUTE_PATH="${GITHUB_WORKSPACE}/pom.xml"
|
||||||
@@ -111,7 +71,7 @@ jobs:
|
|||||||
|
|
||||||
retries=3
|
retries=3
|
||||||
count=0
|
count=0
|
||||||
until "$MAVEN_HOME/bin/mvn" clean install -N -U -DskipTests -f "$MAIN_POM_ABSOLUTE_PATH"; do
|
until "$MAVEN_HOME/bin/mvn" clean package install -U -DskipTests -f "$MAIN_POM_ABSOLUTE_PATH"; do
|
||||||
count=$((count + 1))
|
count=$((count + 1))
|
||||||
if [ $count -ge $retries ]; then
|
if [ $count -ge $retries ]; then
|
||||||
echo "错误:主POM构建失败"
|
echo "错误:主POM构建失败"
|
||||||
|
Reference in New Issue
Block a user