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

Unable to build maven2 project with maven2/3 native jobs "Not authorized, ReasonPhrase:Unauthorized"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • maven-plugin
    • jenkins-LTS-1.424.3 (issue was not there in LTS-1.424.2)

      Since the upgrade to Jenkins-1.424.3, we are unable to build a native maven build on maven2 projects.

      Seems like it's trying to parse the project's pom, and it won't succeed.
      Might be related to the bigger strictness of M3, but from a m2 project point of view, it's a regression :-/.

      L'ééchéance d'une alarme périodique a provoqué le lancement de ce job
      ln -s 2012-03-02_07-28-27 /ic/.jenkins/jobs/someproject-10.0/builds/517 failed: -1 
      Building on master
      Updating svn://somesvn/someproject-parent
      At revision 69492
      no change for svn://somesvn/someproject-parent since the previous build
      No emails were triggered.
      Parsing POMs
      Failed to transfer Not authorized, ReasonPhrase:Unauthorized.
      ERROR: Echec à la lecture des POMs
      org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
      [FATAL] Non-resolvable parent POM: Could not transfer artifact fr.gid:someartefact:pom:11.5.0 from/to devRepo (http://repository.corp.net:8081/nexus/content/groups/public/): Not authorized, ReasonPhrase:Unauthorized. and 'parent.relativePath' points at wrong local POM @ line 5, column 10
      
      	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:339)
      	at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:360)
      	at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:330)
      	at hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:321)
      	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1355)
      	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1182)
      	at hudson.FilePath.act(FilePath.java:758)
      	at hudson.FilePath.act(FilePath.java:740)
      	at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:869)
      	at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:634)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:458)
      	at hudson.model.Run.run(Run.java:1376)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:487)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:175)
      [WARNINGS] Skipping publisher since build result is FAILURE
      Saut de l&#39analyse sonar suite à un mauvais status de construction FAILURE
      Email was triggered for: Failure
      Sending email for trigger: Failure
      Sending email to: team@corp.fr
      Notifying upstream projects of job completion
      Finished: FAILURE
      

      I didn't put that issue as BLOCKER since the solution is to recreate the job as freestyle one. But it's an awkward solution.

      PS : yes, I know the feature is still said to be beta.

      Cheers

            Unassigned Unassigned
            batmat Baptiste Mathus
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: