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

Add a friendly message for missing deployment policy

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            Hide
            raphc Raphael CHAUMIER added a comment -

            Good suggestion.

            Show
            raphc Raphael CHAUMIER added a comment - Good suggestion.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: