mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
pipeline file changes
This commit is contained in:
parent
50e1fc1585
commit
194dc3e3f4
1 changed files with 4 additions and 13 deletions
|
|
@ -20,15 +20,6 @@ steps:
|
||||||
[int]$PatternExpectedVersionNumbers = 4
|
[int]$PatternExpectedVersionNumbers = 4
|
||||||
[int]$VersionNumbersInVersion = 4
|
[int]$VersionNumbersInVersion = 4
|
||||||
|
|
||||||
Write-Host "##[debug]applicationName = $ApplicationName"
|
|
||||||
Write-Host "##[debug]pathToSearch = $PathToSearch"
|
|
||||||
Write-Host "##[debug]buildNumber = $BuildNumber"
|
|
||||||
Write-Host "##[debug]searchFilter = $SearchFilter"
|
|
||||||
Write-Host "##[debug]patternSplitCharacters = $PatternSplitCharacters"
|
|
||||||
Write-Host "##[debug]pattern = $Pattern"
|
|
||||||
Write-Host "##[debug]patternExpectedVersionNumbers = $PatternExpectedVersionNumbers"
|
|
||||||
Write-Host "##[debug]versionNumbersInVersion = $VersionNumbersInVersion"
|
|
||||||
|
|
||||||
Function Replace-Version() {
|
Function Replace-Version() {
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory = $true)] $content,
|
[Parameter(Mandatory = $true)] $content,
|
||||||
|
|
@ -97,7 +88,7 @@ steps:
|
||||||
|
|
||||||
$files = Get-ChildItem -Path $PathToSearch -Filter $SearchFilter -Recurse
|
$files = Get-ChildItem -Path $PathToSearch -Filter $SearchFilter -Recurse
|
||||||
foreach ($file in $files) {
|
foreach ($file in $files) {
|
||||||
Write-Host " -> Checking $($file.FullName)"
|
Write-Host "-> Checking $($file.FullName)"
|
||||||
|
|
||||||
# remove the read-only bit on the file
|
# remove the read-only bit on the file
|
||||||
Set-ItemProperty $file.FullName -name IsReadOnly -value $false
|
Set-ItemProperty $file.FullName -name IsReadOnly -value $false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue