Discussion:
Buildr 1.4.5 doesn't hounour git global config user.name/email
Sathwik B P
2016-11-08 19:48:59 UTC
Permalink
Hi guys,
Just figured out yesterday while making a release of Apache ODE that buildr
1.4.5 doesn't honour git global config user.name/user.email.

The settings have to be done @project level otherwise, at the time of
committing next version and tagging it fails.

By the way we use buildr dockerized container for the build.

Regards,
Sathwik
Antoine Toulme
2016-11-08 19:51:10 UTC
Permalink
Hello Sathwik,

it might well be that since you run Buildr in a Docker container, it cannot access your global git config, as it’s probably running git from inside the container.

I am interested in your docker container recipe, can you point me at it?

Cheers,

Antoine
Post by Sathwik B P
Hi guys,
Just figured out yesterday while making a release of Apache ODE that buildr
1.4.5 doesn't honour git global config user.name/user.email.
committing next version and tagging it fails.
By the way we use buildr dockerized container for the build.
Regards,
Sathwik
Sathwik B P
2016-11-08 19:55:19 UTC
Permalink
Just to mention that I had used locally installed Apache Archiva to mock
the release few days ago where It had failed for the same reason.
My bad, just forgot to make the same change for the release yesterday and
encountered the same problem.
Post by Sathwik B P
Hi guys,
Just figured out yesterday while making a release of Apache ODE that
buildr 1.4.5 doesn't honour git global config user.name/user.email.
committing next version and tagging it fails.
By the way we use buildr dockerized container for the build.
Regards,
Sathwik
Sathwik B P
2016-11-08 20:01:40 UTC
Permalink
Hi Antonie,
Second time when I ran the mock by setting it @project level it succeeded.
But I completly forgot to do that during the Apache release.

https://github.com/sathwik/docker-buildr/blob/master/jruby-jdk7/Dockerfile
Post by Sathwik B P
Just to mention that I had used locally installed Apache Archiva to mock
the release few days ago where It had failed for the same reason.
My bad, just forgot to make the same change for the release yesterday and
encountered the same problem.
Post by Sathwik B P
Hi guys,
Just figured out yesterday while making a release of Apache ODE that
buildr 1.4.5 doesn't honour git global config user.name/user.email.
committing next version and tagging it fails.
By the way we use buildr dockerized container for the build.
Regards,
Sathwik
Sathwik B P
2016-11-08 20:08:46 UTC
Permalink
This is shell that starts the container
https://github.com/apache/ode/blob/ode-1.3.x/ci-build.sh
Post by Sathwik B P
Hi Antonie,
But I completly forgot to do that during the Apache release.
https://github.com/sathwik/docker-buildr/blob/master/jruby-jdk7/Dockerfile
Post by Sathwik B P
Just to mention that I had used locally installed Apache Archiva to mock
the release few days ago where It had failed for the same reason.
My bad, just forgot to make the same change for the release yesterday and
encountered the same problem.
Post by Sathwik B P
Hi guys,
Just figured out yesterday while making a release of Apache ODE that
buildr 1.4.5 doesn't honour git global config user.name/user.email.
committing next version and tagging it fails.
By the way we use buildr dockerized container for the build.
Regards,
Sathwik
Antoine Toulme
2016-11-08 20:32:24 UTC
Permalink
OK, so since you’re mounting those folders:

[snip]
-v $HOME/.m2:/home/dummy/.m2 \
-v $HOME/.buildr:/home/dummy/.buildr \
[snip]

You probably also want to mount your .gitconfig:
-v $HOME/.gitconfig:/home/dummy/.gitconfig

This way git can pick up your git global config.
Post by Sathwik B P
This is shell that starts the container
https://github.com/apache/ode/blob/ode-1.3.x/ci-build.sh
Post by Sathwik B P
Hi Antonie,
But I completly forgot to do that during the Apache release.
https://github.com/sathwik/docker-buildr/blob/master/jruby-jdk7/Dockerfile
Post by Sathwik B P
Just to mention that I had used locally installed Apache Archiva to mock
the release few days ago where It had failed for the same reason.
My bad, just forgot to make the same change for the release yesterday and
encountered the same problem.
Post by Sathwik B P
Hi guys,
Just figured out yesterday while making a release of Apache ODE that
buildr 1.4.5 doesn't honour git global config user.name/user.email.
committing next version and tagging it fails.
By the way we use buildr dockerized container for the build.
Regards,
Sathwik
Sathwik B P
2016-11-09 05:13:42 UTC
Permalink
Ah Darn,
Thanks for pointing that out.
Post by Antoine Toulme
[snip]
-v $HOME/.m2:/home/dummy/.m2 \
-v $HOME/.buildr:/home/dummy/.buildr \
[snip]
-v $HOME/.gitconfig:/home/dummy/.gitconfig
This way git can pick up your git global config.
Post by Sathwik B P
This is shell that starts the container
https://github.com/apache/ode/blob/ode-1.3.x/ci-build.sh
Post by Sathwik B P
Hi Antonie,
succeeded.
Post by Sathwik B P
Post by Sathwik B P
But I completly forgot to do that during the Apache release.
https://github.com/sathwik/docker-buildr/blob/master/
jruby-jdk7/Dockerfile
Post by Sathwik B P
Post by Sathwik B P
Post by Sathwik B P
Just to mention that I had used locally installed Apache Archiva to
mock
Post by Sathwik B P
Post by Sathwik B P
Post by Sathwik B P
the release few days ago where It had failed for the same reason.
My bad, just forgot to make the same change for the release yesterday
and
Post by Sathwik B P
Post by Sathwik B P
Post by Sathwik B P
encountered the same problem.
Post by Sathwik B P
Hi guys,
Just figured out yesterday while making a release of Apache ODE that
buildr 1.4.5 doesn't honour git global config user.name/user.email.
committing next version and tagging it fails.
By the way we use buildr dockerized container for the build.
Regards,
Sathwik
Loading...