[JIRA] (JENKINS-49627) Last Changes Plugin shows git changes only in the first directory of the multidirectory pipeline
Title: Message Title sivanarayana baisani commented on JENKINS-49627 Re: Last Changes Plugin shows git changes only in the first directory of the multidirectory pipeline any progress with the multi repo support for this plugin? Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.188552.1519051579000.3503.1572275820269%40Atlassian.JIRA.
[JIRA] (JENKINS-49627) Last Changes Plugin shows git changes only in the first directory of the multidirectory pipeline
Title: Message Title Rafael Pestano edited a comment on JENKINS-49627 Re: Last Changes Plugin shows git changes only in the first directory of the multidirectory pipeline Hi [~anastasiiavlaskina],sorry for the delay on replying.One way to solve your problem I can think now is to send the diff of each repo as an email attachment because the plugin was not designed to work with multiple repositories. Following is an example of how to send the diff as email (taken from [plugin docs|https://github.com/jenkinsci/last-changes-plugin#sending-the-diff-as-email]):{code} checkout(repo_settings)def publisher = LastChanges.getLastChangesPublisher "LAST_SUCCESSFUL_BUILD", "SIDE", "LINE", true, true, "", "", "", repo['relativeTargetDir'], ""publisher.publishLastChanges()def changes = publisher.getLastChanges()def diff = changes.getDiff()writeFile file: 'build.diff', text: diffemailext ( subject: "Sending diff of Job '${env.JOB_NAME} #${env.BUILD_NUMBER}'", attachmentsPattern: '**/*.diff', mimeType: 'text/html', body: """See attached diff of '${env.JOB_NAME} [${env.BUILD_NUMBER}]'.: Check rich diff at ${env.JOB_NAME} [${env.BUILD_NUMBER}]""", to: " rmpestano yourteam @ gmail mail .com" ) }{code}You'll need [email ext plugin|https://wiki.jenkins.io/display/JENKINS/Email-ext+plugin] installed.I hope it helps. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49627) Last Changes Plugin shows git changes only in the first directory of the multidirectory pipeline
Title: Message Title Rafael Pestano commented on JENKINS-49627 Re: Last Changes Plugin shows git changes only in the first directory of the multidirectory pipeline Hi Anastasiia Vlaskina, sorry for the delay on replying. One way to solve your problem I can think now is to send the diff of each repo as an email attachment because the plugin was not designed to work with multiple repositories. Following is an example of how to send the diff as email (taken from plugin docs): checkout(repo_settings) def publisher = LastChanges.getLastChangesPublisher "LAST_SUCCESSFUL_BUILD", "SIDE", "LINE", true, true, "", "", "", repo['relativeTargetDir'], "" publisher.publishLastChanges() def changes = publisher.getLastChanges() def diff = changes.getDiff() writeFile file: 'build.diff', text: diff emailext ( subject: "Sending diff of Job '${env.JOB_NAME} #${env.BUILD_NUMBER}'", attachmentsPattern: '**/*.diff', mimeType: 'text/html', body: """See attached diff of '${env.JOB_NAME} [${env.BUILD_NUMBER}]'.: Check rich diff at "${env.BUILD_URL}/last-changes">${env.JOB_NAME} [${env.BUILD_NUMBER}]""", to: "rmpest...@gmail.com" ) } You'll need email ext plugin installed. I hope it helps. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googleg
[JIRA] (JENKINS-49627) Last Changes Plugin shows git changes only in the first directory of the multidirectory pipeline
Title: Message Title Anastasiia Vlaskina created an issue Jenkins / JENKINS-49627 Last Changes Plugin shows git changes only in the first directory of the multidirectory pipeline Issue Type: Bug Assignee: Rafael Pestano Attachments: Screenshot from 2018-02-19 15-44-34.png Components: last-changes-plugin Created: 2018-02-19 14:46 Environment: Jenkins 2.101 Last Changes Plugin 2.6 Priority: Major Reporter: Anastasiia Vlaskina I'd like to see git changes in all 3 projects PIPELINE_PROJECT, FOO_PROJECT and BAR_PROJECT under the link workspace//last-changes/. However, I see only the change in the first repo PIPELINE_PROJECT. Nevertheless, the links themselves contain right info about commits in all 3 repos. As you can see, all commit ids are different. // Last changes from revision f566cf1 to d1e91ab published successfully! Last changes from revision 5d837fd to 4ea9b64 published successfully! Last changes from revision 1e840f9 to e53ecf8 published successfully! This is my Jenkinsfile //node(JENKINS_NODE) { try { stage('Checkout repos') { echo '\n== Checking out