Add snyk monitor support for windows.
- Remove the following pending platforms from vanagon_packaging.sh
windows-2012r2-x64
windows-2012r2-x86
windowsfips-2012r2-x64
- On Windows, we need to ssh as "Administrator" not "root" like:
ssh_user=root
|
if [[ ${p_build_target_axis_name} =~ windows ]]; then
|
ssh_user=Administrator
|
fi
|
...
|
ssh ... "$ssh_user@$build_host" <<'EOF'
|
...
|
scp ... "$ssh_user@build_host:..."
|
- Create Windows tempfiles with "native" paths:
if [[ $(uname) =~ CYGWIN_NT ]]; then
|
generator=$(cygpath -w "$generator")
|
gemfile=$(cygpath -w "$gemfile")
|
fi
|
- Generate Gemfile.lock using windows paths:
if [[ $(uname) =~ CYGWIN_NT ]]; then
|
cmd /c C:\\ProgramFiles64Folder\\PuppetLabs\\Puppet\\puppet\\bin\\ruby "$generator" > $gemfile
|
cmd /c C:\\ProgramFiles64Folder\\PuppetLabs\\Puppet\\puppet\\bin\\gem.bat which bundler || C:\\ProgramFiles64Folder\\PuppetLabs\\Puppet\\puppet\\bin\\gem.bat install --no-document bundler
|
cmd /c C:\\ProgramFiles64Folder\\PuppetLabs\\Puppet\\puppet\\bin\\bundle lock --local --lockfile Gemfile.lock --gemfile "$gemfile"
|
else
|
- Also need to support 32-bit as well, e.g. C:\\ProgramFilesFolder\\PuppetLabs\\Puppet\\puppet\\bin
ruby
This is blocked on PA-4313.