Users cannot deploy to Nexus 3 using maven, only using the UI - maven-3

I am writing instructions on how to set up Travis CI to deploy to our local Nexus 3 maven repository. I am testing my own instructions to make sure everything works. I have discovered that I cannot upload any artifacts using maven unless I use administrator credentials. As a regular user, I can upload using the provided web UI, but not maven.
All the users have full admin rights over the hosted repositories as well as the nx-component-upload privilege which enables the UI upload.
I must be missing something. The error message I get when running maven deploy is:
org.apache.maven.shared.transfer.artifact.deploy.ArtifactDeployerException: Failed to deploy artifacts: Could not transfer artifact nz.org.riskscape:rsum_api:jar:1.0 from/to juglab-release (https://dais-maven/repository/juglab-release/): Failed to transfer file https://dais-maven/repository/juglab-release/nz/org/riskscape/rsum_api/1.0/rsum_api-1.0.jar with status code 401
Thanx in advance for any help

I finally got it to work. The problem was in the settings file, the username had been misstyped.

Related

Unable to load Maven meta-data error while executing Jenkins project

While running my existing Jenkins Project I am running into the below issue as soon as I start it -
Click to view the error
I tried hitting the URL for Maven Meta Data (as in the screen shot) manually to check 401 issue but I am able to download the meta data file through browser. artifact.unx is an internal site. I have re-checked my access to the site as well and it works fine. Also, this has been a recent issue and Jenkins project executed just fine some days back.
Any lead here would be useful.
Most likely your repository requires authentication and something changed in the setup of it, a proxy or the machine running Jenkins jobs that make it no longer authorised.
Gradle supports multiple schemes of authentication for repositories. Have a look at the documentation.

How to set up artifcatory in Jenkins Free Style Project?

I am using Free Style Projects (in Jenkins) to schedule a regression test.
1. Get Source From BitBucket
2. Execute Windows Batch Command.
Earlier we are allowed to upload the jar files in Bitbucket. So we did not face any issue. Now Presently due to some changes in the process, we are not allowed to upload binaries which is affecting to upload jars in the Bitbucket.
Now, They gave given the artifactory url to set up for Maven. But we don't have any Maven projects.
It seems that artifactory is getting populated when it is hosted in the local. But we wanted to use the artifactory which is shared..
Can any one let me know the set up for free style project and the artifactory hosted in other machine and we have only URL.
Thanks
Here is documentation:
https://www.jfrog.com/confluence/display/RTF/Jenkins+Artifactory+Plug-in
I recommend to use Maven Project.

Unable to configure a non java project on Jenkins

I have a non-Java project for which I want to automate the build through jenkins.
I have create a job with free Style type. Then I have checked out the SVN repository to my local machine. For testing purposes, I want to first build the project locally.
I have Repository URL : file:///C:/MyProject/.
I get an error: Unable to access file:///C:/MyProject : svn: E180001: Unable to open an ra_local session to URL.
Also I tried with credentials, but am still getting same error.
Note: credentials I have given are the ones which I use to login to my local machine.
Please assists.

Deploy Files after build jenkins

I was abled to build with jenkins on a Build Server and was able to get the publish files on local.
However, I am unable to deploy these to a diferrent application server when I specify the path '\192.168.1.51\MyPublishedFiles' in the publish profile.
This is probably because the app server uses login credentials.
I have the login credentials but cannot find a plugin which can help me copy the files to another server.
What strategy / Plugin can I use do to the same ?

Artifactory Hudson Builds not showing artifacts

I'm trying to setup Artifactory(free version) and Hudson to deploy artifacts.
The main stuff already works, i can deploy to Artifactory via Hudson. Using the Artifactory Hudson Plugin with generic deployment.
I am also able to browse the deployed stuff via the Tree & Simple Browser.
What not works correctly is the Build Browser, it does show everything except the artifacts deployed by the build. In the published modules view it should show all artifacts, but the tables are just greyed out for me.
Example how it should look:
Link to the official Jfrog Artifactory demo repository
Does anyone know if this view is maybe a pro feature, or any other tips how to resolve this problem?
The build integration feature is limited in the OSS version. You need the Pro version to get the full deal.
I've used the description setter plugin https://wiki.jenkins-ci.org/display/JENKINS/Description+Setter+Plugin . In my case i take the last revision and put a link to the artifact in artifactory. In this way on every build i can see a direct link to the artifact changing the path like you want.

Resources