SVN_REVISION variable not returning checkout revision in Jenkins
up vote
0
down vote
favorite
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
add a comment |
up vote
0
down vote
favorite
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
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
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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
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
jenkins svn visualsvn-server
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
add a comment |
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
add a comment |
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 ;-)
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
add a comment |
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 ;-)
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
add a comment |
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 ;-)
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
add a comment |
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 ;-)
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 ;-)
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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