Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-builds-dev] How to create a build server and add credentials programmatically

I found it for myself:

 

            RepositoryLocation repositoryLocation = new RepositoryLocation(serverURL);

            repositoryLocation.setCredentials(AuthenticationType.REPOSITORY,

                new UserCredentials(<user>, <password>));

 

Regards,

 

From: mylyn-builds-dev-bounces@xxxxxxxxxxx [mailto:mylyn-builds-dev-bounces@xxxxxxxxxxx] On Behalf Of Julian Enoch
Sent: January-22-14 11:30 AM
To: mylyn-builds-dev@xxxxxxxxxxx
Subject: [mylyn-builds-dev] How to create a build server and add credentials programmatically

 

Greetings,

 

Apologies if I am posting in the wrong place. I would appreciate you pointing me to the right one.

 

I have tried to create a build server using the Wizard api unsuccessfully. But I was able to get some results using the BuildsUi and BuildModel methods.

 

However I can’t figure out a way to inject the username and password.

 

Can you please give a hint about this.

 

Thanks in advance,

Julian


Back to the top