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

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

XMLWordPrintable

      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

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

              Created:
              Updated: