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

Add a friendly message for missing deployment policy

      Hi,
      I'd like to suggest a friendly message for missing deployment policy on weblogic-deployer-plugin.

      The build was started by an SCM change, and the message was:

      [WeblogicDeploymentPlugin] - Current build causes (hudson.triggers.SCMTrigger$SCMTriggerCause@3) do not contain any of the configured (org.jenkinsci.plugins.deploy.weblogic.data.policy.UserIdCauseDeploymentPolicy@47408485). The plugin execution is disabled.
      [INFO] ------------------------------------------------------------------------
      [INFO] DEPLOYMENT UNSTABLE
      [INFO] ------------------------------------------------------------------------

      Printing the objects instances .toString() is not so friendly. I'd like to suggest something like:

      [WeblogicDeploymentPlugin] - Current build cause(s) "SCMTriggerCause" do(es) not contain any of the configured "Deployment Policies". The plugin execution is disabled.

      The message could also explain how to setup the Deployment Policy, e.g:

      [WeblogicDeploymentPlugin] - Verify at "Post-build Actions > Deploy the artifact to any Weblogic environments  > Deployment policies" if all the appropriate policies are applied according to enabled build triggers.

      #My Jenkins:

      Jenkins:2.32.3
      weblogic-deployer-plugin:3.6

          [JENKINS-42802] Add a friendly message for missing deployment policy

          André Duarte created issue -
          André Duarte made changes -
          Description Original: Hi,
           I'd like to suggest a friendly message for missing deployment policy on weblogic-deployer-plugin.

          The build was started by an SCM change, and the message was:
          {quote}[WeblogicDeploymentPlugin] - Current build causes (hudson.triggers.SCMTrigger$SCMTriggerCause@3) do not contain any of the configured (org.jenkinsci.plugins.deploy.weblogic.data.policy.UserIdCauseDeploymentPolicy@47408485). The plugin execution is disabled.
           [INFO] ------------------------------------------------------------------------
           [INFO] DEPLOYMENT UNSTABLE
           [INFO] ------------------------------------------------------------------------
          {quote}
          Printing the objects instances .toString() is not so friendly. I'd like to suggest something like:
          {quote}[WeblogicDeploymentPlugin] - Current build cause(s) "SCMTriggerCause" do(es) not contain any of the configured "Deployment Policy". The plugin execution is disabled.
          {quote}
          The message could also explain how to setup the Deployment Policy, e.g:
          {quote}[WeblogicDeploymentPlugin] - Verify at "Post-build Actions > Deploy the artifact to any Weblogic environments  > Deployment policies" if all the appropriate policies are applied according to enabled build triggers.
          {quote}
          #My Jenkins:

          Jenkins:2.32.3
           weblogic-deployer-plugin:3.6
          New: Hi,
           I'd like to suggest a friendly message for missing deployment policy on weblogic-deployer-plugin.

          The build was started by an SCM change, and the message was:
          {quote}[WeblogicDeploymentPlugin] - Current build causes (hudson.triggers.SCMTrigger$SCMTriggerCause@3) do not contain any of the configured (org.jenkinsci.plugins.deploy.weblogic.data.policy.UserIdCauseDeploymentPolicy@47408485). The plugin execution is disabled.
           [INFO] ------------------------------------------------------------------------
           [INFO] DEPLOYMENT UNSTABLE
           [INFO] ------------------------------------------------------------------------
          {quote}
          Printing the objects instances .toString() is not so friendly. I'd like to suggest something like:
          {quote}[WeblogicDeploymentPlugin] - Current build cause(s) "SCMTriggerCause" do(es) not contain any of the configured "Deployment Policies". The plugin execution is disabled.
          {quote}
          The message could also explain how to setup the Deployment Policy, e.g:
          {quote}[WeblogicDeploymentPlugin] - Verify at "Post-build Actions > Deploy the artifact to any Weblogic environments  > Deployment policies" if all the appropriate policies are applied according to enabled build triggers.
          {quote}
          #My Jenkins:

          Jenkins:2.32.3
           weblogic-deployer-plugin:3.6
          André Duarte made changes -
          Attachment New: weblogic-deployer-message.png [ 36532 ]
          Raphael CHAUMIER made changes -
          Labels Original: weblogic-deployer-plugin-3.6 New: weblogic-deployer-plugin-3.6 weblogic-deployer-plugin-3.7
          Raphael CHAUMIER made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Raphael CHAUMIER made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Raphael CHAUMIER made changes -
          Remote Link New: This issue links to "Page (Jenkins Wiki)" [ 17162 ]
          Raphael CHAUMIER made changes -
          Status Original: In Review [ 10005 ] New: In Progress [ 3 ]
          Raphael CHAUMIER made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Raphael CHAUMIER made changes -
          Resolution New: Done [ 10000 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Raphael CHAUMIER made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            raphc Raphael CHAUMIER
            sharkduarte André Duarte
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: