-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathReadPackagesFromSpecificPhases.ps1
More file actions
25 lines (19 loc) · 2.48 KB
/
Copy pathReadPackagesFromSpecificPhases.ps1
File metadata and controls
25 lines (19 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Module RayFlow is required, see readme.md for more details
## Replace with your values
$url = 'https://<rayflow-server-url>:<port>/<instance>';
$projectName = '<your-project-name>';
## If you do not want to enter plain text password here, you can skip creation of credentials object and call the subsequent commands
## without credentials. You will be asked interactively to provide them.
$userName = '<your-user-name>';
$password = '<your-password>';
$cred = Get-RayFlowCredentials -UserName $userName -PlainTextPassword $password;
$project = Get-RayFlowProject -RayFlowServerUrl $url -Credentials $cred -ProjectName $projectName;
$allPhases = Get-RayFlowPhase -Project $project
## The following cherry-picks PKG and EVAL phases by comparing their short names
$selectedPhases = $allPhases | Where-Object { ($_.ShortName -eq 'PKG') -or ($_.ShortName -eq 'EVAL') }
foreach ($phase in $selectedPhases) {
Write-Progress -Activity ("Getting tasks from " + $phase.ShortName);
$tasks = Get-RayFlowTask -Phase $phase
Write-Output "### Phase: $phase `r`n";
Write-Output ($tasks | Select-Object Id, ApplicationId, ApplicationVendor, ApplicationName, ApplicationVersion, ApplicationLanguage | Format-Table -AutoSize | Out-String);
}