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

Flexible Publish Plugin does not list 'Execute Shell' as an 'Action'

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • job-dsl-plugin
    • None
    • Ubuntu 16.04.3
      Jenkins 2.107.1
      Flexible Publish Plugin 0.15.2

      When using the UI to create or edit a job, the flexible publish plugin does not list 'Execute Shell' as an action, however when creating a job using DSL, 'Execute Shell' (steps->shell) is a valid action, and the resulting output does show 'Execute Shell'.

      This DSL works:

      freeStyleJob('thisworks') {

      wrappers

      { timestamperBuildWrapper() }

      steps

      { shell("ps -ef") }

      publishers {
      flexiblePublish {
      conditionalAction {
      condition

      { alwaysRun() }

      runner('Run')
      steps

      { shell("ps -ef") }

      }
      }
      }

      }

          [JENKINS-50409] Flexible Publish Plugin does not list 'Execute Shell' as an 'Action'

          Radek Dostal added a comment -

          We have the same issue on jenkins version 2.138.1

          Radek Dostal added a comment - We have the same issue on jenkins version 2.138.1

          ikedam added a comment -

          It's not a bug and an expected behavior for flexible-publish (UI).
          Use any-buildstep-plugin if you want to use build steps in flexible-publish: https://plugins.jenkins.io/any-buildstep/ .

          It sounds rather an issue of job-dsl-plugin.
          I don't know whether this is a bug or an expected behavior for job-dsl-plugin.

          ikedam added a comment - It's not a bug and an expected behavior for flexible-publish (UI). Use any-buildstep-plugin if you want to use build steps in flexible-publish: https://plugins.jenkins.io/any-buildstep/ . It sounds rather an issue of job-dsl-plugin. I don't know whether this is a bug or an expected behavior for job-dsl-plugin.

            jamietanna Jamie Tanna
            fzbassman Eric Wallengren
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: