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

Deploying an applicatin w/ "no-route" fails because route deletion fails

XMLWordPrintable

      When deploying an application with the "no-route: true" option, then the Jenkins plug-in attempts to delete the route. If the route does not exist (because it was never created), an exception is thrown.

      manifest.yml

      - name: my-app
        no-route: true
      

      Exception

      ERROR: Publisher com.activestate.cloudfoundryjenkins.CloudFoundryPushPublisher aborted due to exception
      java.lang.IllegalArgumentException: Host 'my-app' not found for domain 'my.domain.com'.
      	at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.deleteRoute(CloudControllerClientImpl.java:1816)
      	at org.cloudfoundry.client.lib.CloudFoundryClient.deleteRoute(CloudFoundryClient.java:519)
      	at com.activestate.cloudfoundryjenkins.CloudFoundryPushPublisher.processOneApp(CloudFoundryPushPublisher.java:184)
      	at com.activestate.cloudfoundryjenkins.CloudFoundryPushPublisher.perform(CloudFoundryPushPublisher.java:115)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      	at hudson.model.Build$BuildExecution.post2(Build.java:183)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:6
      

            williamg William Gautier
            buchen Andreas Buchen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: