Closed javydreamercsw closed 3 years ago
This means {{releaseNotesUrl}} is resolved to the incorrect value. Could you invoke mvn jreleaser:config
and check the values of all URLs found under the release.gitlab
block?
Cannot reproduce. A pom.xml
with the following configuration:
<plugin>
<groupId>org.jreleaser</groupId>
<artifactId>jreleaser-maven-plugin</artifactId>
<version>0.5.0</version>
<configuration>
<jreleaser>
<release>
<gitlab>
<host>custom.gitlab.com</host>
</gitlab>
</release>
<announce>
<slack>
<active>ALWAYS</active>
</slack>
</announce>
</jreleaser>
</configuration>
</plugin>
Invoking mvn jreleaser:announce
and inspecting target/jreleaser/trace.log
shows the custom GitLab host used in releaseNotesUrl
[INFO] [slack] channel: #announce
[DEBUG] [slack] Slack dryrun set to true
[DEBUG] [slack] slack.message: Message[channel='#announce', content='๐ App 1.0.0 has been released! https://custom.gitlab.com/aalmiray/app/-/releases/v1.0.0']
UPDATE: the error occurs with JReleaser 0.4.0 but does not with 0.5.0. Please upgrade at your earliest convenience.
Steps to Reproduce
Configure as below
Expected Behaviour
Announcement links to configured GitLab
Actual Behaviour
Links to gitlab.com instead, i.e. https://gitlab.com/javierortiz/project-verison-SNAPSHOT/-/releases/v5.0.8-SNAPSHOT
Environment Information