Re: Question regarding https://github.com/jenkins-infra/update-center2

38 views
Skip to first unread message

Gavin Mogan

unread,
Jan 12, 2021, 2:20:53 PM1/12/21
to Junaid Subhani, Jenkins Infrastructure
Daniel Beck owns update center.

I would recommend the Jenkins infra mailing list and ask there.

I believe artifactory was changed to prevent anonymous downloads for bandwidth reasons but db will know more

As for how you get them, you need a Jenkins account and then login to artifactory. I can grab links when I'm not mobile out hopefully someone on mailing list can help. (Cc but I don't know if you'll get responses)

Gavin


On Tue., Jan. 12, 2021, 10:10 a.m. Junaid Subhani, <ijunaid...@gmail.com> wrote:
Hello Gavin

Hope you are doing well.

I came across your email address here --> https://github.com/halkeye

I am working with https://github.com/jenkins-infra/update-center2 and have come across an issue and was hoping to find someone to help me out or give me any pointers.

The last time I built the update-center was 2 years ago using the command

```
mvn package appassembler:assemble
```

and then ran it using
```
sh target/appassembler/bin/app --id default ...
```

All worked fine then. This is commit 131b0493d06b7370dd44af8f38f0ea3a1ca30162

Now I want to upgrade the my local update center so I pulled the latest commit efbad1d0e4c7f31e0a6f0c93a021068343422fa6

Now I can successfully build it but when I run it, I get the error message


[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:58 min
[INFO] Finished at: 2021-01-11T19:29:29Z
[INFO] ------------------------------------------------------------------------
...
root@97a546de5047:~/ext-jenkins-infra-update-center2-2.0# sh target/appassembler/bin/app
Exception in thread "main" java.lang.IllegalStateException: ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD need to be set
at io.jenkins.update_center.DefaultMavenRepositoryBuilder.getInstance(DefaultMavenRepositoryBuilder.java:21)
at io.jenkins.update_center.Main.createRepository(Main.java:318)
at io.jenkins.update_center.Main.run(Main.java:236)
at io.jenkins.update_center.Main.run(Main.java:179)
at io.jenkins.update_center.Main.main(Main.java:167)

root@97a546de5047:~/ext-jenkins-infra-update-center2-2.0# java -Dfile.encoding=UTF-8 -jar target/update-center2--SNAPSHOT-bin/update-center2--SNAPSHOT.jar --id default
Exception in thread "main" java.lang.IllegalStateException: ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD need to be set
at io.jenkins.update_center.DefaultMavenRepositoryBuilder.getInstance(DefaultMavenRepositoryBuilder.java:21)
at io.jenkins.update_center.Main.createRepository(Main.java:318)
at io.jenkins.update_center.Main.run(Main.java:236)
at io.jenkins.update_center.Main.run(Main.java:179)
at io.jenkins.update_center.Main.main(Main.java:167)

```

Would you be able to tell me why are credentials necessary now ? And how can I get them. I need to setup an update center locally since I run a closed build env and do not allow my clients to talk directly to https://updates.jenkins.io/download/

Thank you in advance.

BR,
Junaid

Daniel Beck

unread,
Jan 14, 2021, 7:23:21 PM1/14/21
to jenkin...@googlegroups.com


> On 12. Jan 2021, at 20:20, 'Gavin Mogan' via Jenkins Infrastructure <jenkin...@googlegroups.com> wrote:
>
> I believe artifactory was changed to prevent anonymous downloads for bandwidth reasons but db will know more

I did this because the client libs to process Nexus Maven indexes were a decade or so old, and Artifactory had increasing trouble generating those reliably and quickly anyway. Folks who've been around for a while may remember conversations with JFrog support CC'ed to this list. So I ripped that part out and uc2 is now pulling artifact metadata from the Artifactory API instead, and that requires authentication.

FTR the original poster contacted me via Gitter and I'm helping them there.

Reply all
Reply to author
Forward
0 new messages