Skip to content

Running GitVersion on Kudu #810

@devlead

Description

@devlead

Running GitVersion in a restricted environment like i.e. Kudu (Azure web app deployment environment) results in a few issues

Your not allowed to set process priority so launching with GitVersion.exe" /output json results in

Unhandled Exception: System.ComponentModel.Win32Exception: Access is denied
   at System.Diagnostics.Process.set_PriorityClass(ProcessPriorityClass value)
   at GitVersion.Helpers.ProcessHelper.Start(ProcessStartInfo startInfo)
   at GitVersion.Helpers.ProcessHelper.Run(Action`1 output, Action`1 errorOutput, TextReader input, String exe, String args, String workingDirectory, KeyValuePair`2[] environmentalVariables)
   at GitVersion.LibGitExtensions.DumpGraph(String workingDirectory, Action`1 writer, Nullable`1 maxCommits)
   at GitVersion.Program.VerifyArgumentsAndRun()
   at GitVersion.Program.Main()

and exit code = -532462766
which seems to be releated to this
https://github.com/GitTools/GitVersion/blob/master/src/GitVersionCore/Helpers/ProcessHelper.cs#L27

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions