Skip to content

Make WAR file version dynamic in IQSS_Dataverse_Internal Jenkins job#49

Open
ofahimIQSS wants to merge 1 commit into
IQSS:masterfrom
ofahimIQSS:patch-1
Open

Make WAR file version dynamic in IQSS_Dataverse_Internal Jenkins job#49
ofahimIQSS wants to merge 1 commit into
IQSS:masterfrom
ofahimIQSS:patch-1

Conversation

@ofahimIQSS
Copy link
Copy Markdown

This PR updates the IQSS_Dataverse_Internal Jenkins job configuration to dynamically detect the WAR file version from modules/dataverse-parent/pom.xml instead of hardcoding it.

Changes made:

  • Added Maven command to extract the current Dataverse version from pom.xml.
  • Replaced hardcoded WAR filename with a dynamically constructed name based on the detected version.
  • This eliminates the need to manually edit the Jenkins job when Dataverse version changes.

With this change, the Jenkins job will automatically use the correct WAR file for any Dataverse release without additional maintenance.

Added VERSION=$(...) to read the actual version from modules/dataverse-parent/pom.xml.

Built WARFILE dynamically from that version.

Replaced all dataverse-5.13.war with $WARFILE.

Preserved the server details and path you had in the original XML.

Left chmod in place
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.

1 participant