• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • gradle-jpi-plugin
    • None

      The plugin injects the public Maven repositories. When running a build behind a firewall with local Maven repository this will cause the build to take a very long time (30-60min).
      I had to remove the repository URLs after the plugin was loaded.

      It would be better if the repository URLs are documented in the Wiki but not injected by default.

      Workaround:

      // remove external repositories that were injected by JPI plugin - we only use our local Nexus
      repositories {
      all { repo ->
      if (repo.url.toString().contains("http://repo1.maven.org/") || repo.url.toString().contains("http://maven.jenkins-ci.org/")) {
      logger.warn "Repository ${repo.url} REMOVED"
      remove repo
      }

      }
      }

          [JENKINS-17130] Plugin messes up repository URLs

          Daniel Spilker added a comment - - edited

          I opened a pull request to add a configureRepositories option to be able to skip configuration of repositories:

          https://github.com/jenkinsci/gradle-jpi-plugin/pull/47

          Daniel Spilker added a comment - - edited I opened a pull request to add a configureRepositories option to be able to skip configuration of repositories: https://github.com/jenkinsci/gradle-jpi-plugin/pull/47

          Code changed in jenkins
          User: Daniel Spilker
          Path:
          CHANGELOG.md
          config/codenarc/rules.groovy
          src/main/groovy/org/jenkinsci/gradle/plugins/jpi/JpiExtension.groovy
          src/main/groovy/org/jenkinsci/gradle/plugins/jpi/JpiPlugin.groovy
          src/test/groovy/org/jenkinsci/gradle/plugins/jpi/JpiManifestSpec.groovy
          src/test/groovy/org/jenkinsci/gradle/plugins/jpi/JpiPluginSpec.groovy
          src/test/groovy/org/jenkinsci/gradle/plugins/jpi/JpiPomCustomizerSpec.groovy
          src/test/resources/org/jenkinsci/gradle/plugins/jpi/complex-pom.xml
          http://jenkins-ci.org/commit/gradle-jpi-plugin/44fe12847e098524f984778c905381e86bdb4bfb
          Log:
          Merge pull request #47 from daspilker/JENKINS-17130

          Added configureRepositories Option

          Compare: https://github.com/jenkinsci/gradle-jpi-plugin/compare/3791a55fe28d...44fe12847e09

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Spilker Path: CHANGELOG.md config/codenarc/rules.groovy src/main/groovy/org/jenkinsci/gradle/plugins/jpi/JpiExtension.groovy src/main/groovy/org/jenkinsci/gradle/plugins/jpi/JpiPlugin.groovy src/test/groovy/org/jenkinsci/gradle/plugins/jpi/JpiManifestSpec.groovy src/test/groovy/org/jenkinsci/gradle/plugins/jpi/JpiPluginSpec.groovy src/test/groovy/org/jenkinsci/gradle/plugins/jpi/JpiPomCustomizerSpec.groovy src/test/resources/org/jenkinsci/gradle/plugins/jpi/complex-pom.xml http://jenkins-ci.org/commit/gradle-jpi-plugin/44fe12847e098524f984778c905381e86bdb4bfb Log: Merge pull request #47 from daspilker/ JENKINS-17130 Added configureRepositories Option Compare: https://github.com/jenkinsci/gradle-jpi-plugin/compare/3791a55fe28d...44fe12847e09

            daspilker Daniel Spilker
            gruberrolandfiducia Roland Gruber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: