Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
NTabjula
Contributor
Contributor

Getting 401 Unauthorized Error while deploying from Jenkins

Getting Below Error while doing a Jenkins build, tried multiple options but not helping. Any insights can be helpful

https\://talendbuildserver.lb.com/repository/talend-custom-libs-snapshot/.error=Could not transfer artifact org.talend.ci\:builder-maven-plugin\:pom\:7.3.4 from/to plugins_snapshot (https\://talendbuildserver.lb.com/repository/talend-custom-libs-snapshot/)\: Authentication failed for https\://talendbuildserver.lb.com/repository/talend-custom-libs-snapshot/org/talend/ci/builder-maven-plugin/7.3.4/builder-maven-plugin-7.3.4.pom 401 Unauthorized

c1a937eaf8b6ccb930156b9f2b6e4664def26a46@default-central-https\://talendbuildserver.lb.com/repository/maven-central/.lastUpdated=1614369497119

3 Replies
RVP1
Employee
Employee

Hello @Nikhil Tabjula​ ,

 

If you are receiving a 401 it is because Maven is sending the wrong login credentials, or no credentials at all."

Could you please cross verify that once ? if everything is correct then You also get this error if you try to publish something to a releases repository and that version already exists in the repository. So you might find that by publishing from the command line it works, but then when you do it from a script it fails (because it didn't exist in the repository the first time around). Either publish using a different version number, or delete the old artefact on the server and republish.

The SNAPSHOTS repository (as opposed to the releases repository) allows you to overwrite a similarly numbered version, but your version number should have "-SNAPSHOT" at the end of it.

 

Please let us know if this helps.

 

Thanks !!

 

 

NTabjula
Contributor
Contributor
Author

Hello RVP, Thanks for the reply.

 

I did verify the Login Credentials and i see all of them good, do not see any issue.

When you mean the release repository is it the Jars you are mentioning or the Application itself. The talend release repo had the Jars, but the talend Snap shot did not have.

 

Thanks,

Nikhil T

cdhemant
Contributor
Contributor

I am also facing exact same issue however through Azure Devops pipeline

 

Any help appreciated.

 

Thanks

Hemant