Should be a generic step to pick any DurableTask.

          [JENKINS-26055] DurableTaskStep

          Jesse Glick added a comment -

          Workaround is to use sh/bat and run the tool manually, using tool as needed to install it.

          Jesse Glick added a comment - Workaround is to use sh / bat and run the tool manually, using tool as needed to install it.

          Jesse Glick added a comment -

          A more general change that might be useful here is to allow a BodyInvoker to invoke another StepExecution rather than a regular body. Then you could have a step which runs (for example) ToolStep, then sets up some context including EnvironmentExpander and ConsoleLogFilter, then runs ShellStep (for example) with some preconfigured command.

          This would have been useful here too.

          Jesse Glick added a comment - A more general change that might be useful here is to allow a BodyInvoker to invoke another StepExecution rather than a regular body. Then you could have a step which runs (for example) ToolStep , then sets up some context including EnvironmentExpander and ConsoleLogFilter , then runs ShellStep (for example) with some preconfigured command. This would have been useful here too.

          Andrew Bayer added a comment -

          Any pointers if I were to try to work on this?

          Andrew Bayer added a comment - Any pointers if I were to try to work on this?

          Andrew Bayer added a comment -

          So I've started playing with some toys wrapping around WindowsBatchScript and/or BourneShellScript to invoke Maven, Ant, etc, and I'm currently stymied by detecting which one to use, i.e., which platform we're on. There's no launcher available to DurableTaskStep.task(), which is the context, from what I can tell, where I'd construct the appropriate one, so I don't know how I can automatically determine that. jglick - any thoughts?

          Andrew Bayer added a comment - So I've started playing with some toys wrapping around WindowsBatchScript and/or BourneShellScript to invoke Maven, Ant, etc, and I'm currently stymied by detecting which one to use, i.e., which platform we're on. There's no launcher available to DurableTaskStep.task() , which is the context, from what I can tell, where I'd construct the appropriate one, so I don't know how I can automatically determine that. jglick - any thoughts?

          Jesse Glick added a comment -

          Never mind the platform determination, the hard part would be engine API changes as outlined in August.

          Jesse Glick added a comment - Never mind the platform determination, the hard part would be engine API changes as outlined in August.

          Jimmy Ray added a comment -

          So, I have a similar need here. I wrote and published the Consul KV Builder Plugin (https://wiki.jenkins-ci.org/display/JENKINS/Consul-KV-Builder+Plugin) that allows jobs to be configured to Read/Write/Delete Key/Value data from/to Hashicorp Consul servers. In the READ mode, the configured build step reads data from Consul and writes ENV variables. So, that currently cannot work with SimpleBuildStep. I am looking into alternatives with SimpleBuildWrapper, but I don't know if that will work either.

          Jimmy Ray added a comment - So, I have a similar need here. I wrote and published the Consul KV Builder Plugin ( https://wiki.jenkins-ci.org/display/JENKINS/Consul-KV-Builder+Plugin ) that allows jobs to be configured to Read/Write/Delete Key/Value data from/to Hashicorp Consul servers. In the READ mode, the configured build step reads data from Consul and writes ENV variables. So, that currently cannot work with SimpleBuildStep. I am looking into alternatives with SimpleBuildWrapper, but I don't know if that will work either.

          Jesse Glick added a comment -

          @jimmyraywv your request has nothing to do with this issue. You just need to use SimpleBuildWrapper; I also added a note to JENKINS-29144.

          Jesse Glick added a comment - @jimmyraywv your request has nothing to do with this issue. You just need to use SimpleBuildWrapper ; I also added a note to JENKINS-29144 .

          Jesse Glick added a comment -

          A more general change that might be useful here…

          …is JENKINS-37011. Going with that for now as it seems to be easier than the original plan.

          Jesse Glick added a comment - A more general change that might be useful here… …is JENKINS-37011 . Going with that for now as it seems to be easier than the original plan.

          Jesse Glick added a comment -

          Probably better to offer both options.

          Jesse Glick added a comment - Probably better to offer both options.

          Jesse Glick added a comment -

          There is no intent to ever do this as originally conceived.

          Jesse Glick added a comment - There is no intent to ever do this as originally conceived.

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            18 Vote for this issue
            Watchers:
            28 Start watching this issue

              Created:
              Updated:
              Resolved: