Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65268

Jenkins Java job build failure and Return code is: 401, ReasonPhrase: Unauthorized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • Nexus Repository Manager Version: 3.7.1-02, Edition OSS.

      While running/building the java job in Jenkins, build is failed and the console output contains the errors.

      Error description is given as follows:
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project MeterToGridAgile: Failed to deploy artifacts: Could not transfer artifact com.sce.m2g:MeterToGridAgile:war:1.0.5-20210330.094538-4 from/to nexus-snapshots (http://xxxxxxxxxxxxxxx/repository/sce-snapshot/): Failed to transfer file: http://xxxxxxxxxxxxxx/repository/sce-snapshot/com/sce/m2g/MeterToGridAgile/1.0.5-SNAPSHOT/MeterToGridAgile-1.0.5-20210330.094538-4.war. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      Build step 'Invoke top-level Maven targets' marked build as failure
      Finished: FAILURE

            gurramd Deepthi
            gurramd Deepthi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: