Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Stores scheduling objects from the JS7 inventory to a local Git repository.

SYNTAX

Set-JS7RepositoryItem [[-Path] <String>] [[-Type] <String[]>] [[-Folder] <String>] [-Recursive] [-Local] [[-ControllerId] <String>] [-Valid] [-NoDraft] [-NoDeployed] [-NoReleased] [-Latest] [[-AuditComment] <String>] [[-AuditTimeSpent] <Int32>] [[-AuditTicketLink] <Uri>] [-WhatIf] [-Confirm] [<CommonParameters>]

...

This cmdlet stores JS7 scheduling objects to a local Git repository. The JS7 settings
determine which object types such as schedules, workflows are considered for a repository
of category LOCAL and of category ROLLOUT respectively.

The following REST Web Service API resources are used:

* /inventory/deployable
* /inventory/deployables
* /inventory/releasable
* /inventory/releasables
* /inventory/repository/store

PARAMETERS

Path

-Path <String>
Specifies the folder, sub-folder and name of the scheduling object, for example a workflow path,
that should be stored to the repository.

...

-NoDeployed <SwitchParameter>
Specifies that no previously deployed objects should be stored.

Required?false
Position?named
Default valueFalse
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

NoReleased

-NoReleased <SwitchParameter>
Specifies that no previously released objects should be stored.

...

-------------------------- EXAMPLE 1 --------------------------

PS > Set-JS7RepositoryItem -ControllerId testsuite,standalone -Path JSRepositoryItem -Folder /TestCases/sampleWorkflow_001 -Type 'WORKFLOW'sampleWorkflows -Recursive

Stores any scheduling objects of the indicated folder and sub-folders to the repository of category ROLLOUTDeploys the specified workflow from the indicated path to both Controller instances.

-------------------------- EXAMPLE 2 --------------------------

PS > Set-JSRepositoryItem JS7RepositoryItem -ControllerId testsuite,standalone -Folder Path /TestCases/sampleWorkflowssampleWorkflow_001 -Type 'WORKFLOW'

Stores the workflow from the specified path to the local repository of category ROLLOUT provided that the workflow has previously been deployed to both indicated Controller instancesStores any scheduling objects previously deployed to the indicated Controller to the repository.

-------------------------- EXAMPLE 3 --------------------------

PS > Set-JS7RepositoryItem -ControllerId testsuite -Folder /Samples -NoDraft

Stores any deployable objects such as workflows, resource locks etc from the specified folder to the repository of category ROLLOUT. No sub-folders and no draft versions of objects are considered.

-------------------------- EXAMPLE 4 --------------------------

PS > Set-JS7RepositoryItem -ControllerId testsuite -Folder /Samples -Recursive -Local

Stores any deployable objects such as workflows job resources and schedules from the specified folder recursively to the repository of category LOCAL. Deployable objects arec considered only if previously deployed to the indicated Controller.