Skip to content

Commit

Permalink
chore: remove unused build.ps1 Build parameter and commented line (#…
Browse files Browse the repository at this point in the history
…425)

* chore: remove unused build.ps1 `Build` parameter and commented line

* update comment in tests and add a log output
  • Loading branch information
lemeurherve authored Jun 17, 2024
1 parent 1253379 commit a1b4f75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Param(
[Parameter(Position=1)]
[String] $Target = 'build',
[String] $Build = '',
[String] $VersionTag = '1.0-1',
[switch] $DryRun = $false,
# Output debug info for tests. Accepted values:
Expand Down Expand Up @@ -97,7 +96,6 @@ function Test-Image {
Remove-Item -Recurse -Force $targetPath
}
New-Item -Path $targetPath -Type Directory | Out-Null
# $configuration.Run.Path = 'tests\sshAgent.Tests.ps1'
$configuration.TestResult.OutputPath = '{0}\junit-results.xml' -f $targetPath
$TestResults = Invoke-Pester -Configuration $configuration
$failed = $false
Expand Down
4 changes: 3 additions & 1 deletion tests/sshAgent.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Import-Module -DisableNameChecking -Force $PSScriptRoot/test_helpers.psm1

$global:IMAGE_NAME = Get-EnvOrDefault 'IMAGE_NAME' '' # Ex: jenkins4eval/ssh-agent:nanoserver-1809-jdk17
$global:IMAGE_NAME = Get-EnvOrDefault 'IMAGE_NAME' '' # Ex: jenkins4eval/ssh-agent:nanoserver-ltsc2019-jdk17
$global:JAVA_VERSION = Get-EnvOrDefault 'JAVA_VERSION' ''

Write-Host "= TESTS: Preparing $global:IMAGE_NAME with Java $global:JAVA_VERSION"

$imageItems = $global:IMAGE_NAME.Split(':')
$global:IMAGE_TAG = $imageItems[1]

Expand Down

0 comments on commit a1b4f75

Please sign in to comment.