-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
idempotent OSS and ALT deploy #234
Labels
Milestone
Comments
can not skip building jar.
deploy-file is too heavy. |
<profile>
<id>deploy-alt</id>
<properties>
<!--suppress UnresolvedMavenProperty -->
<altrh.release.url>${MVN_ALT_REPO}</altrh.release.url>
<altrh.release.id>altrh</altrh.release.id>
<!--suppress UnresolvedMavenProperty -->
<altrh.snapshot.url>${MVN_ALT_SNAP}</altrh.snapshot.url>
<altrh.snapshot.id>altrh</altrh.snapshot.id>
<altReleaseDeploymentRepository>${altrh.release.id}::${altrh.release.url}</altReleaseDeploymentRepository>
<altSnapshotDeploymentRepository>${altrh.snapshot.id}::${altrh.snapshot.url}</altSnapshotDeploymentRepository>
</properties>
</profile> #!/bin/bash
## need deploy-alt profile
function mvn_eval_expr(){
mvn -P deploy-alt help:evaluate -q -DforceStdout -Dexpression="$1"
}
GROUP_ID=$(mvn_eval_expr project.groupId)
ARTIFACT_ID=$(mvn_eval_expr project.artifactId)
VERSION=$(mvn_eval_expr project.version)
if [[ $VERSION == *"-SNAPSHOT" ]]; then
REPO_URL=$(mvn_eval_expr altrh.snapshot.url)
REPO_ID=$(mvn_eval_expr altrh.snapshot.id)
else
REPO_URL=$(mvn_eval_expr altrh.release.url)
REPO_ID=$(mvn_eval_expr altrh.release.id)
fi
##
echo "Group ID: $GROUP_ID"
echo "Artifact ID: $ARTIFACT_ID"
echo "Version: $VERSION"
echo "Repository URL: $REPO_URL"
echo "Repository ID: $REPO_ID" deploy:deploy-file do NOT handle maven-metadata.xml |
backup artifacts and restore for deploy by |
trydofor
added a commit
that referenced
this issue
May 17, 2024
change doc and git loglevel to WARN
|
trydofor
added a commit
that referenced
this issue
May 17, 2024
github-project-automation
bot
moved this from 🏗 In progress
to ✅ Done
in WingsBoot Backlog
May 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
current deployment
and central repo have some lag.
SHOULD package once, multiply deploy the artifacts without rebuilding.
The text was updated successfully, but these errors were encountered: