Fix build windows (#2045)
* use the tag name from the predefined variable for azure pipeline (#2041) * fix typo when assigning build_version in azure pipeline (#2044) --------- Co-authored-by: blotus <sebastien@crowdsec.net>
This commit is contained in:
parent
97ee59ef71
commit
358a4f49ea
|
@ -58,7 +58,7 @@ stages:
|
||||||
displayName: "Sign Crowdsec binaries + plugins"
|
displayName: "Sign Crowdsec binaries + plugins"
|
||||||
|
|
||||||
- pwsh: |
|
- pwsh: |
|
||||||
$build_version=$(Build.SourceBranchName)
|
$build_version=$Build.SourceBranchName
|
||||||
if ($build_version.Contains("-"))
|
if ($build_version.Contains("-"))
|
||||||
{
|
{
|
||||||
$build_version = $build_version.Substring(0, $build_version.IndexOf("-"))
|
$build_version = $build_version.Substring(0, $build_version.IndexOf("-"))
|
||||||
|
@ -69,7 +69,7 @@ stages:
|
||||||
name: BuildMSI
|
name: BuildMSI
|
||||||
|
|
||||||
- pwsh: |
|
- pwsh: |
|
||||||
$build_version=$(Build.SourceBranchName)
|
< $build_version=$Build.SourceBranchName
|
||||||
if ($build_version.Contains("-"))
|
if ($build_version.Contains("-"))
|
||||||
{
|
{
|
||||||
$build_version = $build_version.Substring(0, $build_version.IndexOf("-"))
|
$build_version = $build_version.Substring(0, $build_version.IndexOf("-"))
|
||||||
|
|
Loading…
Reference in a new issue