Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate changelogs in jenkins pipeline script with SVN

This question is basically the same as this one except I'm using subversion, and no plugin update has done the trick for me.

I'm loading my Jenkinsfile script with a multibranch pipeline setting, and the changelog gets duplicated at each new checkout scm.

Since in my build I'm using multiple workspaces, allocated through node inside parallel blocks, I'm calling fresh checkouts for each of them, and the changelog duplication is getting a bit annoying.

like image 415
Federico Bonelli Avatar asked May 05 '16 10:05

Federico Bonelli


People also ask

How do I give SVN credentials in Jenkins?

Next to the Repository URL text box click the question mark. In that box will be the following text: "click this link and specify different credential". Click on that link to open the Subversion Authentication page. On that page enter the root of the repository URL, enter the login and password to use and click OK.

Can we integrate SVN with Jenkins?

The integration of Subversion with Rally Software and Jenkins gives the project management team complete control over the codes being committed in the source code repository. It also creates complete traceability for all work items in Rally Software.

How do I find my SVN revision number in Jenkins?

1 Answer. "http://your-jenkins-host/env-vars.html/" and you'd find a constant called "SVN_REVISION" Each job build will keep the SVN revision in the given variable. Check out this Jenkins Certification , if you want to up your Jenkins' skills.


1 Answers

Rather than redefining the SCM class, one can still refer to the original "scm" object and disable the changelog like so:

checkout(changelog: false, scm: scm)

This will retain the intended behviour of "checkout scm" while disabling the changelog generation.

like image 189
Deepu Sudhakar Avatar answered Sep 28 '22 03:09

Deepu Sudhakar