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

Azure Deployment in Jenkins pipeline ignores Git config and searches for Linux git command

      We want to use the azureWebAppPublish step in our jenkins file for a multibranch pipeline build.

      We have our build agents configured to find the git assembly in "c:\Program..."

      The azureWebAppPublish plugin however seems to ignore this Setting and fails with

      java.io.IOException: Cannot run program "/usr/bin/git"

       

      Our step is like this:

      steps { azureWebAppPublish appName: 'FOO', azureCredentialsId: 'FOO', filePath: '**', publishType: 'file', resourceGroup: 'FOO', sourceDirectory: 'artifacts/'}

      The plugin does use the configured git when used via the UI and work as expected, only as pipeline build and in a jenkins file it ignores the config.

      Thx & BR Matthias

          [JENKINS-57082] Azure Deployment in Jenkins pipeline ignores Git config and searches for Linux git command

          Jie Shen added a comment -

          How do you configure git for your agent? I am trying to reproduce your issue.

          Jie Shen added a comment - How do you configure git for your agent? I am trying to reproduce your issue.

          Hi, thx for the quick reply. "https://jenkins/computer/[BuildAgent]/configure". Set "(Git) Default" to "C:\Program Files\Git\bin\git.exe".

          Matthias Lischka added a comment - Hi, thx for the quick reply. "https://jenkins/computer/[BuildAgent]/configure". Set "(Git) Default" to "C:\Program Files\Git\bin\git.exe".

          Andres Duran added a comment -

          We have the same issue but its reversed. In our Linux agent it shows up as "c:\Program..." instead of just using git

          Andres Duran added a comment - We have the same issue but its reversed. In our Linux agent it shows up as "c:\Program..." instead of just using git

            jieshe Jie Shen
            matthiaslischka Matthias Lischka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: