Jenkins maven release plugin doesn't commit files to bitbucket

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins maven release plugin doesn't commit files to bitbucket

Ashwini-2
Hi Team, 

I am trying to perform automated maven release using Jenkins and maven release plugin. When i perform the maven release, plugin modifies the pom.xml, creates release.properties, pom backup under jenkins workspace but doesn't commit the files to bitbucket. I don't see any errors in the build output. I assume in general the release plugin should be committing all files to bitbucket. 
Below are the logs from build. Release prepare modifies files, adds but doesn't commit files to bitbucket. Could please someone help me understand the behavior of release plugin and if i am doing something wrong. Jenkins version is 2.176.1 and Maven Release Plug-in Plug-in 0.14.0

[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git add -- pom.xml
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git status
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Tagging release with the label test-parent-151.1...
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git tag -F /tmp/maven-scm-57955011.commit test-parent-151.1
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git push ssh://Ashwinibasavaraj:Dinash@[hidden email]/Ashwinibasavaraj/test_parent.git test-parent-151.1
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git ls-files
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Transforming 'test-parent'...
[INFO] Not removing release POMs
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git add -- pom.xml
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git status
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Release preparation complete.
[INFO] 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/029b56e4-44e3-47c2-b55e-2874efc8726f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins maven release plugin doesn't commit files to bitbucket

Baptiste MATHUS
Does this work outside Jenkins using Maven only?

Le mar. 16 juil. 2019 à 13:57, Ashwini <[hidden email]> a écrit :
Hi Team, 

I am trying to perform automated maven release using Jenkins and maven release plugin. When i perform the maven release, plugin modifies the pom.xml, creates release.properties, pom backup under jenkins workspace but doesn't commit the files to bitbucket. I don't see any errors in the build output. I assume in general the release plugin should be committing all files to bitbucket. 
Below are the logs from build. Release prepare modifies files, adds but doesn't commit files to bitbucket. Could please someone help me understand the behavior of release plugin and if i am doing something wrong. Jenkins version is 2.176.1 and Maven Release Plug-in Plug-in 0.14.0

[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git add -- pom.xml
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git status
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Tagging release with the label test-parent-151.1...
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git tag -F /tmp/maven-scm-57955011.commit test-parent-151.1
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git push ssh://Ashwinibasavaraj:Dinash@4989@bitbucket.org/Ashwinibasavaraj/test_parent.git test-parent-151.1
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git ls-files
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Transforming 'test-parent'...
[INFO] Not removing release POMs
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git add -- pom.xml
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git status
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Release preparation complete.
[INFO] 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/029b56e4-44e3-47c2-b55e-2874efc8726f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7MMcnLQoLa3%2B-AJ-MeQ6N1dsi%2Bpz9BzHsLpb78OKL-GA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins maven release plugin doesn't commit files to bitbucket

Ashwini Basavaraj
yes it works fine when I do it from local. only Jenkins has issues, 

On Fri, Jul 19, 2019 at 6:12 PM Baptiste Mathus <[hidden email]> wrote:
Does this work outside Jenkins using Maven only?

Le mar. 16 juil. 2019 à 13:57, Ashwini <[hidden email]> a écrit :
Hi Team, 

I am trying to perform automated maven release using Jenkins and maven release plugin. When i perform the maven release, plugin modifies the pom.xml, creates release.properties, pom backup under jenkins workspace but doesn't commit the files to bitbucket. I don't see any errors in the build output. I assume in general the release plugin should be committing all files to bitbucket. 
Below are the logs from build. Release prepare modifies files, adds but doesn't commit files to bitbucket. Could please someone help me understand the behavior of release plugin and if i am doing something wrong. Jenkins version is 2.176.1 and Maven Release Plug-in Plug-in 0.14.0

[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git add -- pom.xml
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git status
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Tagging release with the label test-parent-151.1...
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git tag -F /tmp/maven-scm-57955011.commit test-parent-151.1
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git push ssh://Ashwinibasavaraj:Dinash@4989@bitbucket.org/Ashwinibasavaraj/test_parent.git test-parent-151.1
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git ls-files
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Transforming 'test-parent'...
[INFO] Not removing release POMs
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git add -- pom.xml
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/release_parent/workspace && git status
[INFO] Working directory: /var/lib/jenkins/jobs/release_parent/workspace
[INFO] Release preparation complete.
[INFO] 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/029b56e4-44e3-47c2-b55e-2874efc8726f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7MMcnLQoLa3%2B-AJ-MeQ6N1dsi%2Bpz9BzHsLpb78OKL-GA%40mail.gmail.com.


--

Ashwini Basavaraj

BOXARR | Operations


T: <a href="tel:+44%20117%20911%204762" value="+441179114762" target="_blank">+44 7469554745<a href="tel:+44%20117%20911%204762" value="+441179114762" target="_blank">

E:  [hidden email]
W: www.boxarr.com
LI: linkedin.com/company/boxarr

@: twitter.com/boxarr


This message is private and confidential. If you have received this message in error, please notify us immediately and remove it from your system. www.BOXARR.com/email-policy

BOXARR is a limited company registered in England and Wales. Company registration number: 04873279. Registered Office: The Wallbrook Building, 25 Wallbrook, London, EC4N 8AF, United Kingdom

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPz8dUacV_kKGq4bqugj13gkPob3641z9hLtPL7vE2HM8rOKNg%40mail.gmail.com.