Convert from bat to powershell
This commit is contained in:
parent
4c74502b75
commit
07464ef1b1
1 changed files with 3 additions and 3 deletions
|
|
@ -38,7 +38,7 @@ class ProductInfo extends GISJsonSerialised {
|
||||||
pstatus = script.sh(script: "git check-ref-format --normalize \"refs/tags/${productname}\" >/dev/null 2>/dev/null", , returnStatus: true)
|
pstatus = script.sh(script: "git check-ref-format --normalize \"refs/tags/${productname}\" >/dev/null 2>/dev/null", , returnStatus: true)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
pstatus = script.bat(script: "@git check-ref-format --normalize \"refs/tags/${productname}\" > NUL 2> NUL", , returnStatus: true)
|
pstatus = script.powershell(script: "git check-ref-format --normalize \"refs/tags/${productname}\" > NUL 2> NUL", , returnStatus: true)
|
||||||
}
|
}
|
||||||
if (pstatus > 0) {
|
if (pstatus > 0) {
|
||||||
script.error("The product name: ${productname} needs to be renamed as it cannot be used in a git tag name")
|
script.error("The product name: ${productname} needs to be renamed as it cannot be used in a git tag name")
|
||||||
|
|
@ -48,7 +48,7 @@ class ProductInfo extends GISJsonSerialised {
|
||||||
sstatus = script.sh(script: "git check-ref-format --normalize \"refs/tags/${subcomponentname}\" >/dev/null 2>/dev/null", , returnStatus: true)
|
sstatus = script.sh(script: "git check-ref-format --normalize \"refs/tags/${subcomponentname}\" >/dev/null 2>/dev/null", , returnStatus: true)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sstatus = script.bat(script: "@git check-ref-format --normalize \"refs/tags/${subcomponentname}\" > NUL 2> NUL", , returnStatus: true)
|
sstatus = script.powershell(script: "git check-ref-format --normalize \"refs/tags/${subcomponentname}\" > NUL 2> NUL", , returnStatus: true)
|
||||||
}
|
}
|
||||||
if (sstatus > 0) {
|
if (sstatus > 0) {
|
||||||
script.error("The subcomponent name: ${subcomponentname} needs to be renamed as it cannot be used in a git tag name")
|
script.error("The subcomponent name: ${subcomponentname} needs to be renamed as it cannot be used in a git tag name")
|
||||||
|
|
@ -59,7 +59,7 @@ class ProductInfo extends GISJsonSerialised {
|
||||||
vstatus = script.sh(script: "git check-ref-format --normalize \"refs/tags/${variant}\" >/dev/null 2>/dev/null", , returnStatus: true)
|
vstatus = script.sh(script: "git check-ref-format --normalize \"refs/tags/${variant}\" >/dev/null 2>/dev/null", , returnStatus: true)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
vstatus = script.bat(script: "@git check-ref-format --normalize \"refs/tags/${variant}\" > NUL 2> NUL", , returnStatus: true)
|
vstatus = script.powershell(script: "git check-ref-format --normalize \"refs/tags/${variant}\" > NUL 2> NUL", , returnStatus: true)
|
||||||
}
|
}
|
||||||
if (vstatus > 0) {
|
if (vstatus > 0) {
|
||||||
script.error("The subcomponent name: ${variant} needs to be renamed as it cannot be used in a git tag name")
|
script.error("The subcomponent name: ${variant} needs to be renamed as it cannot be used in a git tag name")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue