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

MSYS2 shell can not be used in pipeline shell (mixed linux/win32 pipeline)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • pipeline
    • None
    • v2.204.5 / linux64 / jdk 1.8

      I want to launch my commands from a pipeline shell executed on a remote windows slave.

      In my pipeline I have linux and windows agent, I can not change shell for the whole pipeline

      unfortunately using this command in the pipleine fails

       

      sh("""E:/msys2/msys2_shell.cmd -mingw64

                                            cmake ...

                                            make

                                      """)

      the commands are not executed within the shell
       

            Unassigned Unassigned
            sancelot stephane ancelot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: