Skip to content

Instantly share code, notes, and snippets.

@slide
Created October 22, 2019 15:10
Show Gist options
  • Save slide/a4dc20c4ca8250e3347fc0175d04c8a4 to your computer and use it in GitHub Desktop.
Save slide/a4dc20c4ca8250e3347fc0175d04c8a4 to your computer and use it in GitHub Desktop.
New-Item -ItemType Directory -Path $('{0}/{1}' -f $env:WARDIR,$env:VERSION)
New-Item -ItemType Directory -Path $env:WAR_WEBDIR
$sha256 = (Get-FileHash -Algorithm SHA256 -Path $_.FullName).Hash.ToString().ToLower()
Set-Content -Path $env:WAR_SHASUM -Value $sha256
Write-Host $sha256
Copy-Item $env:WAR $('{0}/{1}/{2}.war' -f $env:WARDIR,$env:VERSION,$ARTIFACTNAME)
Copy-Item $env:WAR_SHASUM $('{0}/{1}' -f $env:WARDIR,$env:VERSION)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment