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

Cucumber Slack Notifier Plugin incompatible with CasC

      The Cucumber Slack Notifier plugin's global configuration doesn't seem to work with Casc

      • Jenkins version: - 2.204.2
      • CasC version - 1.35
      • cucumber-slack-notifier - 0.8.3

      Refs:

       

          [JENKINS-61037] Cucumber Slack Notifier Plugin incompatible with CasC

          Jamie Jackson added a comment - - edited

          Assuming there is no CasC support on the horizon, does anybody have any tips for configuring the plugin from groovy? I have no idea how to do that. (If we figure that out I could use jcasc-groovy as a workaround.)

          Jamie Jackson added a comment - - edited Assuming there is no CasC support on the horizon, does anybody have any tips for configuring the plugin from groovy? I have no idea how to do that. (If we figure that out I could use jcasc-groovy as a workaround.)

          Jamie Jackson added a comment -

          Would making webHookEndpoint a public property of CucumberSlack.java make it so it could be configured via the following?

          jenkins.yml
          unclassified:
            cucumberSlack:
              webHookEndpoint: https://hooks.slack.com/services/XXX/YYY
          

          Jamie Jackson added a comment - Would making webHookEndpoint a public property of CucumberSlack.java make it so it could be configured via the following? jenkins.yml unclassified: cucumberSlack: webHookEndpoint: https: //hooks.slack.com/services/XXX/YYY

          Jamie Jackson added a comment - - edited

          Even if do this the most old-fashioned/hacky way possible; i.e., by editing XML config files:

          org.jenkinsci.plugins.slacknotifier.CucumberSlack.xml
          <?xml version='1.1' encoding='UTF-8'?>
          <org.jenkinsci.plugins.slacknotifier.CucumberSlack_-CucumberSlackDescriptor plugin="cucumber-slack-notifier@0.8.3">
            <webHookEndpoint>https://hooks.slack.com/services/XXX/YYY</webHookEndpoint>
          </org.jenkinsci.plugins.slacknotifier.CucumberSlack_-CucumberSlackDescriptor>

          ...for some reason, it only works if I go to the "Configure System" form and (without making any edits to the form) save the form.

          I'm completely striking out on any way to use this plugin within a containerized Jenkins instance without some kind of manual steps each time it's redeployed.

          Jamie Jackson added a comment - - edited Even if do this the most old-fashioned/hacky way possible; i.e., by editing XML config files: org.jenkinsci.plugins.slacknotifier.CucumberSlack.xml <?xml version= '1.1' encoding= 'UTF-8' ?> <org.jenkinsci.plugins.slacknotifier.CucumberSlack_-CucumberSlackDescriptor plugin= "cucumber-slack-notifier@0.8.3" > <webHookEndpoint>https: //hooks.slack.com/services/XXX/YYY</webHookEndpoint> </org.jenkinsci.plugins.slacknotifier.CucumberSlack_-CucumberSlackDescriptor> ...for some reason, it only works if I go to the "Configure System" form and (without making any edits to the form) save the form. I'm completely striking out on any way to use this plugin within a containerized Jenkins instance without some kind of manual steps each time it's redeployed.

            ffrangipane Franco Frangipane
            jamiejackson Jamie Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: