Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy SNAPSHOT versions from Travis #528

Merged

Conversation

tomdcc
Copy link
Contributor

@tomdcc tomdcc commented May 24, 2013

This publishes snapshots from Travis to the Sonatype OSS snapshots repository, as per issue #517.

I have altered the travis matrix to just deploy snapshots from the openjdk6 build, and left the jdk 7 ones intact.

Before this will work, someone with a username / password with rights to publish to the info.cukes group at sonatype will need to encrypt their username / password with the travis tool and update the .travis.yml file - see that file (where I have left some instructions) or the blog post linked to in issue #517.

I have tested this by encrypting my own sonatype username / password and changing the group id to be under a group that I have publishing rights to (org.shamdata). The build results can be seen here: https://travis-ci.org/tomdcc/cucumber-jvm/builds/7448822. You can see that the openjdk6 build did a deploy, while the other builds did a normal maven install. The published snapshots ended up here: https://oss.sonatype.org/content/repositories/snapshots/org/shamdata/cukes/. Obviously I have not included the group id changes in this pull request.

This needs the actual sonatype username and password added
after running through a 'travis encrypt' command.

Only try to deploy from one entry in the matrix, so pulled
openjdk6 out of the main jdk matrix and added a separate
entry with its own script with the deploy command.
@tomdcc
Copy link
Contributor Author

tomdcc commented May 27, 2013

Note that this fails the travis build done for the pull request because it doesn't have the correct username / password to deploy to sonatype with.

@aslakhellesoy
Copy link
Contributor

Fantastic!

Thanks a lot @tomdcc

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants