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

Workflow support for XShell plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It'd be nice to expose the xshell plugin functionality through as a workflow step.

      Came from this thread

        Attachments

          Issue Links

            Activity

            kohsuke Kohsuke Kawaguchi created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Component/s workflow-plugin [ 18820 ]
            Assignee Jesse Glick [ jglick ]
            Labels workflow
            Priority Minor [ 4 ] Major [ 3 ]
            Summary workflow support for XShell plugin Workflow support for XShell plugin
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            COMPATIBILITY.md
            http://jenkins-ci.org/commit/workflow-plugin/70cdf15d8a961fadb4c92c041675c7956a89496f
            Log:
            JENKINS-26169 Fixed formatting in note.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: COMPATIBILITY.md http://jenkins-ci.org/commit/workflow-plugin/70cdf15d8a961fadb4c92c041675c7956a89496f Log: JENKINS-26169 Fixed formatting in note.
            jglick Jesse Glick made changes -
            Link This issue depends on JENKINS-26055 [ JENKINS-26055 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-30372 [ JENKINS-30372 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-31691 [ JENKINS-31691 ]
            Hide
            cbennett Colin Bennett added a comment -

            This would be great. It regrettable that making portable builds is so difficult. Here is a workaround in the meantime:

            #!groovy
            
            node {
                execute 'cmake -G Ninja ..'
                execute 'cmake --build .'
                // Run a program that is in the current directory.
                executeCwd 'myprogram --test'
            }
            
            /**
             * Execute a program that exists in the current working directory.
             *
             * On Unix, the current working directory is not implicitly in the PATH,
             * so the command must be prefixed with "./".
             *
             * On Windows, the current directory is first in the search path, but
             * it does not like the "./" used for a Unix-style command.
             *
             * Therefore we have to do something special in each case.
             */
            def executeCwd(commandString) {
                if (isUnix()) {
                    execute("./" + commandString)
                } else {
                    execute(".\\" + commandString)
                }
            }
            
            Show
            cbennett Colin Bennett added a comment - This would be great. It regrettable that making portable builds is so difficult. Here is a workaround in the meantime: #!groovy node { execute 'cmake -G Ninja ..' execute 'cmake --build .' // Run a program that is in the current directory. executeCwd 'myprogram --test' } /** * Execute a program that exists in the current working directory. * * On Unix, the current working directory is not implicitly in the PATH, * so the command must be prefixed with "./" . * * On Windows, the current directory is first in the search path, but * it does not like the "./" used for a Unix-style command. * * Therefore we have to do something special in each case . */ def executeCwd(commandString) { if (isUnix()) { execute( "./" + commandString) } else { execute( ".\\" + commandString) } }
            hrmpw Patrick Wolf made changes -
            Epic Link JENKINS-34657 [ 170293 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 160160 ] JNJira + In-Review [ 180276 ]
            abayer Andrew Bayer made changes -
            Labels workflow pipeline workflow
            abayer Andrew Bayer made changes -
            Labels pipeline workflow pipeline
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-44231 [ JENKINS-44231 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-44991 [ JENKINS-44991 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              kohsuke Kohsuke Kawaguchi
              Votes:
              9 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated: