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

          Matthias Lischka created issue -
          Matthias Lischka made changes -
          Description Original: 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
          {quote}{{java.io.IOException: Cannot run program "/usr/bin/git"}}
          {quote}
           

          Our step is like this:
          {quote}steps {
           azureWebAppPublish appName: 'FOO', azureCredentialsId: 'FOO', filePath: '**', publishType: 'file', resourceGroup: 'FOO', sourceDirectory: 'artifacts/'
           }
          {quote}
          The plugin *does use* the configured git *when configured via the UI* and work as expected, only as pipeline build and in a jenkins file it ignores the config.

          Thx & BR Matthias
          New: 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
          {quote}{{java.io.IOException: Cannot run program "/usr/bin/git"}}
          {quote}
           

          Our step is like this:
          {quote}steps \{ azureWebAppPublish appName: 'FOO', azureCredentialsId: 'FOO', filePath: '**', publishType: 'file', resourceGroup: 'FOO', sourceDirectory: 'artifacts/'}
          {quote}
          The plugin *does use* the configured git *when configured via the UI* and work as expected, only as pipeline build and in a jenkins file it ignores the config.

          Thx & BR Matthias
          Matthias Lischka made changes -
          Description Original: 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
          {quote}{{java.io.IOException: Cannot run program "/usr/bin/git"}}
          {quote}
           

          Our step is like this:
          {quote}steps \{ azureWebAppPublish appName: 'FOO', azureCredentialsId: 'FOO', filePath: '**', publishType: 'file', resourceGroup: 'FOO', sourceDirectory: 'artifacts/'}
          {quote}
          The plugin *does use* the configured git *when configured via the UI* and work as expected, only as pipeline build and in a jenkins file it ignores the config.

          Thx & BR Matthias
          New: 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
          {quote}{{java.io.IOException: Cannot run program "/usr/bin/git"}}
          {quote}
           

          Our step is like this:
          {quote}steps \{ azureWebAppPublish appName: 'FOO', azureCredentialsId: 'FOO', filePath: '**', publishType: 'file', resourceGroup: 'FOO', sourceDirectory: 'artifacts/'}
          {quote}
          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
          Jie Shen made changes -
          Assignee Original: Azure DevOps [ azure_devops ] New: Jie Shen [ jieshe ]
          Azure DevOps made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

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

              Created:
              Updated: