Skip to content

[FIX] Correct snapshot version resolution and deploy target in publish-snapshot workflow - #5499

Merged
Alexkun merged 1 commit into
apache:masterfrom
Alexkun:fix-publish-snapshot
Nov 25, 2026
Merged

Alexkun merged 1 commit into
apache:masterfrom
Alexkun:fix-publish-snapshot

Conversation

@Alexkun

@Alexkun Alexkun commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

The scheduled Publish Snapshot workflow has never succeeded. Root causes:

  • versions:set -Drevision=... doesn't update the CI-friendly <revision> property, the version derivation produces garbage for master, and the {{steps...}} expression is missing $
  • Since the effective version kept no -SNAPSHOT suffix, deploy went to the release staging repo instead of the snapshots repo — once credentials work, it would publish a release-versioned 1.9.0 nightly

This PR (workflow-only): derive the version from <revision> + -SNAPSHOT, use versions:set-property -Dproperty=revision, fix the expression, and add workflow_dispatch.

Note: deploy stays 401 until Infra provisions NEXUS_USER/NEXUS_PW (INFRA-28709); after that the nightly publish should go green and land 1.9.0-SNAPSHOT under https://repository.apache.org/content/repositories/snapshots/org/apache/linkis/

@SelfImpr001

SelfImpr001 commented Nov 25, 2026 via email

Copy link
Copy Markdown

@hhs1

hhs1 commented Nov 25, 2026 via email

Copy link
Copy Markdown

@Davidhua1996 Davidhua1996 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Alexkun
Alexkun merged commit f7dfa59 into apache:master Nov 25, 2026
3 of 10 checks passed
@Alexkun
Alexkun deleted the fix-publish-snapshot branch November 25, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants