SVN_REVISION variable not returning checkout revision in Jenkins











up vote
0
down vote

favorite
1












Using Jenkins 2.138.3 and Subversion plugin on a windows machine. When doing a checkout from SVN server, SVN_REVISION environment variable isn't available as when trying to get the value all it return is empty string.



I have tried to use ${SVN_REVISION} & ${SVN_REVISION_1} but none of them return any revision number.



How can I get the SVN_REVISION number as environment variable or alternatively a simple solution to retrieve it in jenkins as a parameter?



Project type is FreeStyle project.










share|improve this question






















  • Which version of the SVN plugin are you using?
    – Pedro
    Nov 11 at 18:06










  • @Pedro Im using Subversion Plugin 2.12.1
    – Dave23Rave
    Nov 11 at 23:27















up vote
0
down vote

favorite
1












Using Jenkins 2.138.3 and Subversion plugin on a windows machine. When doing a checkout from SVN server, SVN_REVISION environment variable isn't available as when trying to get the value all it return is empty string.



I have tried to use ${SVN_REVISION} & ${SVN_REVISION_1} but none of them return any revision number.



How can I get the SVN_REVISION number as environment variable or alternatively a simple solution to retrieve it in jenkins as a parameter?



Project type is FreeStyle project.










share|improve this question






















  • Which version of the SVN plugin are you using?
    – Pedro
    Nov 11 at 18:06










  • @Pedro Im using Subversion Plugin 2.12.1
    – Dave23Rave
    Nov 11 at 23:27













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





Using Jenkins 2.138.3 and Subversion plugin on a windows machine. When doing a checkout from SVN server, SVN_REVISION environment variable isn't available as when trying to get the value all it return is empty string.



I have tried to use ${SVN_REVISION} & ${SVN_REVISION_1} but none of them return any revision number.



How can I get the SVN_REVISION number as environment variable or alternatively a simple solution to retrieve it in jenkins as a parameter?



Project type is FreeStyle project.










share|improve this question













Using Jenkins 2.138.3 and Subversion plugin on a windows machine. When doing a checkout from SVN server, SVN_REVISION environment variable isn't available as when trying to get the value all it return is empty string.



I have tried to use ${SVN_REVISION} & ${SVN_REVISION_1} but none of them return any revision number.



How can I get the SVN_REVISION number as environment variable or alternatively a simple solution to retrieve it in jenkins as a parameter?



Project type is FreeStyle project.







jenkins svn visualsvn-server






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 10 at 0:12









Dave23Rave

8519




8519












  • Which version of the SVN plugin are you using?
    – Pedro
    Nov 11 at 18:06










  • @Pedro Im using Subversion Plugin 2.12.1
    – Dave23Rave
    Nov 11 at 23:27


















  • Which version of the SVN plugin are you using?
    – Pedro
    Nov 11 at 18:06










  • @Pedro Im using Subversion Plugin 2.12.1
    – Dave23Rave
    Nov 11 at 23:27
















Which version of the SVN plugin are you using?
– Pedro
Nov 11 at 18:06




Which version of the SVN plugin are you using?
– Pedro
Nov 11 at 18:06












@Pedro Im using Subversion Plugin 2.12.1
– Dave23Rave
Nov 11 at 23:27




@Pedro Im using Subversion Plugin 2.12.1
– Dave23Rave
Nov 11 at 23:27












1 Answer
1






active

oldest

votes

















up vote
0
down vote













We ran into the same issue. Downgrade to 2.10.3, which seems to be the latest stable version.



For information, the versions after 2.10.3 but before 2.12.1 have another problem on our SVN server : the authentication fails.



Enjoy ;-)






share|improve this answer





















  • Thanks for the answer. I will try your solution. However, regarding the downgrade... I guess, will have to do it manually as there isn't an option to downgrade it from plugins menu of Jenkins.
    – Dave23Rave
    Nov 23 at 11:03












  • I have downgraded SVN plugin however it still doesn't seem to resolve my issue i.e. i still do not get the SVN revision using ${SVN_REVISION} or ${SVN_REVISION_1} variable. Any further suggestions ?
    – Dave23Rave
    Nov 24 at 15:17










  • No, sorry :-( In my case, I also had a button allowing to easily downgrade using the Jenkins plugin page. Maybe it is because this version was previously installed, but not on your side.
    – Opack
    Nov 26 at 15:18











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53234867%2fsvn-revision-variable-not-returning-checkout-revision-in-jenkins%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













We ran into the same issue. Downgrade to 2.10.3, which seems to be the latest stable version.



For information, the versions after 2.10.3 but before 2.12.1 have another problem on our SVN server : the authentication fails.



Enjoy ;-)






share|improve this answer





















  • Thanks for the answer. I will try your solution. However, regarding the downgrade... I guess, will have to do it manually as there isn't an option to downgrade it from plugins menu of Jenkins.
    – Dave23Rave
    Nov 23 at 11:03












  • I have downgraded SVN plugin however it still doesn't seem to resolve my issue i.e. i still do not get the SVN revision using ${SVN_REVISION} or ${SVN_REVISION_1} variable. Any further suggestions ?
    – Dave23Rave
    Nov 24 at 15:17










  • No, sorry :-( In my case, I also had a button allowing to easily downgrade using the Jenkins plugin page. Maybe it is because this version was previously installed, but not on your side.
    – Opack
    Nov 26 at 15:18















up vote
0
down vote













We ran into the same issue. Downgrade to 2.10.3, which seems to be the latest stable version.



For information, the versions after 2.10.3 but before 2.12.1 have another problem on our SVN server : the authentication fails.



Enjoy ;-)






share|improve this answer





















  • Thanks for the answer. I will try your solution. However, regarding the downgrade... I guess, will have to do it manually as there isn't an option to downgrade it from plugins menu of Jenkins.
    – Dave23Rave
    Nov 23 at 11:03












  • I have downgraded SVN plugin however it still doesn't seem to resolve my issue i.e. i still do not get the SVN revision using ${SVN_REVISION} or ${SVN_REVISION_1} variable. Any further suggestions ?
    – Dave23Rave
    Nov 24 at 15:17










  • No, sorry :-( In my case, I also had a button allowing to easily downgrade using the Jenkins plugin page. Maybe it is because this version was previously installed, but not on your side.
    – Opack
    Nov 26 at 15:18













up vote
0
down vote










up vote
0
down vote









We ran into the same issue. Downgrade to 2.10.3, which seems to be the latest stable version.



For information, the versions after 2.10.3 but before 2.12.1 have another problem on our SVN server : the authentication fails.



Enjoy ;-)






share|improve this answer












We ran into the same issue. Downgrade to 2.10.3, which seems to be the latest stable version.



For information, the versions after 2.10.3 but before 2.12.1 have another problem on our SVN server : the authentication fails.



Enjoy ;-)







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 22 at 15:09









Opack

63




63












  • Thanks for the answer. I will try your solution. However, regarding the downgrade... I guess, will have to do it manually as there isn't an option to downgrade it from plugins menu of Jenkins.
    – Dave23Rave
    Nov 23 at 11:03












  • I have downgraded SVN plugin however it still doesn't seem to resolve my issue i.e. i still do not get the SVN revision using ${SVN_REVISION} or ${SVN_REVISION_1} variable. Any further suggestions ?
    – Dave23Rave
    Nov 24 at 15:17










  • No, sorry :-( In my case, I also had a button allowing to easily downgrade using the Jenkins plugin page. Maybe it is because this version was previously installed, but not on your side.
    – Opack
    Nov 26 at 15:18


















  • Thanks for the answer. I will try your solution. However, regarding the downgrade... I guess, will have to do it manually as there isn't an option to downgrade it from plugins menu of Jenkins.
    – Dave23Rave
    Nov 23 at 11:03












  • I have downgraded SVN plugin however it still doesn't seem to resolve my issue i.e. i still do not get the SVN revision using ${SVN_REVISION} or ${SVN_REVISION_1} variable. Any further suggestions ?
    – Dave23Rave
    Nov 24 at 15:17










  • No, sorry :-( In my case, I also had a button allowing to easily downgrade using the Jenkins plugin page. Maybe it is because this version was previously installed, but not on your side.
    – Opack
    Nov 26 at 15:18
















Thanks for the answer. I will try your solution. However, regarding the downgrade... I guess, will have to do it manually as there isn't an option to downgrade it from plugins menu of Jenkins.
– Dave23Rave
Nov 23 at 11:03






Thanks for the answer. I will try your solution. However, regarding the downgrade... I guess, will have to do it manually as there isn't an option to downgrade it from plugins menu of Jenkins.
– Dave23Rave
Nov 23 at 11:03














I have downgraded SVN plugin however it still doesn't seem to resolve my issue i.e. i still do not get the SVN revision using ${SVN_REVISION} or ${SVN_REVISION_1} variable. Any further suggestions ?
– Dave23Rave
Nov 24 at 15:17




I have downgraded SVN plugin however it still doesn't seem to resolve my issue i.e. i still do not get the SVN revision using ${SVN_REVISION} or ${SVN_REVISION_1} variable. Any further suggestions ?
– Dave23Rave
Nov 24 at 15:17












No, sorry :-( In my case, I also had a button allowing to easily downgrade using the Jenkins plugin page. Maybe it is because this version was previously installed, but not on your side.
– Opack
Nov 26 at 15:18




No, sorry :-( In my case, I also had a button allowing to easily downgrade using the Jenkins plugin page. Maybe it is because this version was previously installed, but not on your side.
– Opack
Nov 26 at 15:18


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53234867%2fsvn-revision-variable-not-returning-checkout-revision-in-jenkins%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Schultheiß

Verwaltungsgliederung Dänemarks

Liste der Kulturdenkmale in Wilsdruff