Details

    • Similar Issues:

      Description

      Should be a generic step to pick any DurableTask.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

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

            Show
            jglick Jesse Glick added a comment - Workaround is to use sh / bat and run the tool manually, using tool as needed to install it.
            Hide
            jglick 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.

            Show
            jglick 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.
            Hide
            abayer Andrew Bayer added a comment -

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

            Show
            abayer Andrew Bayer added a comment - Any pointers if I were to try to work on this?
            Hide
            abayer 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. Jesse Glick - any thoughts?

            Show
            abayer 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. Jesse Glick - any thoughts?
            Hide
            jglick Jesse Glick added a comment -

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

            Show
            jglick Jesse Glick added a comment - Never mind the platform determination, the hard part would be engine API changes as outlined in August.
            Hide
            jimmyraywv 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.

            Show
            jimmyraywv 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.
            Hide
            jglick 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.

            Show
            jglick 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 .
            Hide
            jglick 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.

            Show
            jglick 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.
            Hide
            jglick Jesse Glick added a comment -

            Probably better to offer both options.

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

              People

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

                Dates

                • Created:
                  Updated: