jenkinsci / jenkinsci/subversion-plugin

[JENKINS-20447] SVN_REVISION not always set

Open
#1,079 7 comments 0 reactions 0 assignees View on GitHub
component:subversion-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
131
Forks
275
Avg merge
12h 4m
Merged PRs (30d)
6

Description

In my global configuration, I define a variable as follows:

BUILD_NAME = ${JOB_NAME}r${SVN_REVISION}_b${BUILD_NUMBER}${BUILD_ID}

I then use this build name for the naming of folders and artifacts. This seems to work correctly, but about 80% of the time the SVN_REVISION is empty leaving my BUILD_NAME to contain "r" instead of "r####" as expected.

I have tried using SVN_REVISION_1 as well.

When I view the environment variables after the build is finished, it shows that both SVN_REVISION and SVN_REVISION_1 are set.

If this did not work at all I would not have a problem, but the fact that it is seemingly random shows me that it can work but there are some issue that can hopefully be fixed.

---
Originally reported by ctobey, imported from: SVN_REVISION not always set


  • status: Open
  • priority: Major
  • component(s): subversion-plugin
  • resolution: Unresolved
  • votes: 2
  • watchers: 5
  • imported: 20251212-090250

Raw content of original issue

In my global configuration, I define a variable as follows:

BUILD_NAME = ${JOB_NAME}r${SVN_REVISION}_b${BUILD_NUMBER}${BUILD_ID}

I then use this build name for the naming of folders and artifacts. This seems to work correctly, but about 80% of the time the SVN_REVISION is empty leaving my BUILD_NAME to contain "r" instead of "r####" as expected.

I have tried using SVN_REVISION_1 as well.

When I view the environment variables after the build is finished, it shows that both SVN_REVISION and SVN_REVISION_1 are set.

If this did not work at all I would not have a problem, but the fact that it is seemingly random shows me that it can work but there are some issue that can hopefully be fixed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.