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

chore: Use ow2-nexus as the snapshot repository #3650

Merged
merged 4 commits into from
Oct 19, 2020

Conversation

slarse
Copy link
Collaborator

@slarse slarse commented Oct 15, 2020

Fix #3648

This also requires the credentials in the Jenkins Spoon-Snapshot-Deployer job to be updated with the OW2 credentials (hence titled as wip), but I think that should be all.

I'm not sure about the ID for the repository, is there some convention for that?

@monperrus
Copy link
Collaborator

LGTM.

Just after, we'll have to update the Jenkins deployment job. For this, could you create an account on ci.inria.fr/?

@slarse
Copy link
Collaborator Author

slarse commented Oct 16, 2020

@monperrus I've signed up, sent a request to join the "Spoon Open Source Project". Was that the right project? :)

@monperrus
Copy link
Collaborator

monperrus commented Oct 16, 2020 via email

@slarse
Copy link
Collaborator Author

slarse commented Oct 16, 2020

Great, I've got access to the project, but with minimal access rights :)

@monperrus
Copy link
Collaborator

monperrus commented Oct 16, 2020 via email

@slarse
Copy link
Collaborator Author

slarse commented Oct 19, 2020

with great power...

Comes great hubris! I'm having a look around now getting a feel for what's where :)

@slarse
Copy link
Collaborator Author

slarse commented Oct 19, 2020

@monperrus Alright, I've figured out where everything is (build settings, settings.xml, credentials, etc). All I need now are the OW2 credentials. You could enter them yourself into the credentials manager (and name them something obvious), or send them to me and I'll enter them. My GPG key is over here if you want to encrypt the message.

@monperrus
Copy link
Collaborator

monperrus commented Oct 19, 2020 via email

To clarify that it is the snapshot repository
@slarse
Copy link
Collaborator Author

slarse commented Oct 19, 2020

I believe that everything is now ready for the switch as far as spoon-core goes. FYI I changed the ID of the snapshot repository to ow2.org-snapshot just to clarify that it's for snapshots. Perhaps other OW2 repos are used for other things in the future.

I also noticed that spoon-visualisation/pom.xml lists maven.inria.fr-snapshot as its snapshot repository. Should I switch that over to OW2 as well? It's not deployed by the Spoon Snapshot Deployer, and I couldn't find any other job that actually deploys it, so I'm not sure if it matters.

@monperrus
Copy link
Collaborator

monperrus commented Oct 19, 2020 via email

@slarse slarse changed the title wip: Use ow2-nexus as the snapshot repository chore: Use ow2-nexus as the snapshot repository Oct 19, 2020
@slarse
Copy link
Collaborator Author

slarse commented Oct 19, 2020

Actually, that turned out to be something unrelated, on a closer read ("malai-public-snapshot" as opposed to "spoon-public-snapshot"). Reverted that change.

Anyway, this is ready now, but the settings.xml file in the Jenkins job must be swapped switched to the OW2 version before merge (it's a button click, everything is ready). We could coordinate the merge before or after the meeting today, or just ping me and I'll make the swap ASAP.

@slarse
Copy link
Collaborator Author

slarse commented Oct 19, 2020

Actually, it doesn't really matter if one or two snapshot deployments fail in the meantime.

I've made the swap, merge when ready and hopefully the snapshot should deploy as planned!

@monperrus monperrus merged commit ac06d79 into INRIA:master Oct 19, 2020
@monperrus
Copy link
Collaborator

Thanks a lot!

@slarse
Copy link
Collaborator Author

slarse commented Oct 19, 2020

Aaaaand, it broke.

[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy (injected-nexus-deploy) on project spoon-core: Failed to deploy artifacts: Could not transfer artifact fr.inria.gforge.spoon:spoon-core:jar:jar-with-dependencies:8.3.0-20201019.125525-1 from/to ow2.org-snapshot (https://repository.ow2.org/nexus/content/repositories/snapshots/): Failed to transfer file: https://repository.ow2.org/nexus/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/8.3.0-SNAPSHOT/spoon-core-8.3.0-20201019.125525-1-jar-with-dependencies.jar. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]

Debugging :)

@slarse
Copy link
Collaborator Author

slarse commented Oct 19, 2020

It was a typo, the build is now fine and snapshots are being deployed to the OW2 nexus

https://repository.ow2.org/nexus/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/8.3.0-SNAPSHOT/

@slarse slarse deleted the issue/3648-change-snapshot-repository branch May 28, 2021 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spoon snapshot repository at maven.irisa.fr unreachable
2 participants