Skip to content

Commit

Permalink
Update jenkins-agent.ps1 (jenkinsci#226)
Browse files Browse the repository at this point in the history
adding a position parameters to satisfy github.com/jenkinsci/amazon-ecs-plugin/ requirements
  • Loading branch information
kevit authored and lemeurherve committed Aug 26, 2021
1 parent 70d0edf commit e9d51ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jenkins-agent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
Param(
$Cmd = '', # this is only used when docker run has one arg positional arg
$Url = $( if([System.String]::IsNullOrWhiteSpace($Cmd) -and [System.String]::IsNullOrWhiteSpace($env:JENKINS_URL)) { throw ("Url is required") } else { '' } ),
$Secret = $( if([System.String]::IsNullOrWhiteSpace($Cmd) -and [System.String]::IsNullOrWhiteSpace($env:JENKINS_SECRET)) { throw ("Secret is required") } else { '' } ),
$Name = $( if([System.String]::IsNullOrWhiteSpace($Cmd) -and [System.String]::IsNullOrWhiteSpace($env:JENKINS_AGENT_NAME)) { throw ("Name is required") } else { '' } ),
[Parameter(Position=0)]$Secret = $( if([System.String]::IsNullOrWhiteSpace($Cmd) -and [System.String]::IsNullOrWhiteSpace($env:JENKINS_SECRET)) { throw ("Secret is required") } else { '' } ),
[Parameter(Position=1)]$Name = $( if([System.String]::IsNullOrWhiteSpace($Cmd) -and [System.String]::IsNullOrWhiteSpace($env:JENKINS_AGENT_NAME)) { throw ("Name is required") } else { '' } ),
$Tunnel = '',
$WorkDir = '',
[switch] $WebSocket = $false,
Expand Down

0 comments on commit e9d51ab

Please sign in to comment.