-
Notifications
You must be signed in to change notification settings - Fork 46
Get SamplerProjectBuildInfo
Resolves common project build inputs and identifies the project build type.
Get-SamplerProjectBuildInfo [-ProjectPath] <String> [-OutputDirectory] <String>
[[-BuiltModuleSubdirectory] <String>] [-VersionedOutputDirectory] [[-ProjectName] <String>]
[[-SourcePath] <String>] [[-ModuleVersion] <String>] [-BuildInfo] <Hashtable>
[<CommonParameters>]
This function normalizes values used by build tasks and identifies what kind of project is being built.
A project is treated as a PowerShell module when the source root contains
exactly one valid module manifest (*.psd1, excluding build/analyzer
settings manifests) and that manifest has the publishing metadata needed for
a build.
If the project is a PowerShell module and a built manifest can be resolved
in output, HasBuiltOutput is $true; otherwise $false.
Get-SamplerProjectBuildInfo -ProjectPath $BuildRoot -OutputDirectory $OutputDirectory -BuildInfo $BuildInfo
Build configuration hashtable from build.yaml.
Type: Hashtable
Parameter Sets: (All)
Aliases:
Required: True
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseOptional built module subdirectory under the output directory.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseOptional module version. If omitted, this function does not synthesize a fallback value and leaves version resolution to downstream build logic such as Set-SamplerTaskVariable -AsNewBuild.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseRoot output directory that contains the built module and related build artifacts for the project.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseOptional project or module name. If omitted, this function tries to infer it from build metadata or the source manifest.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseRoot path of the project or repository.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseOptional source path. If omitted, this function tries to resolve it.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies whether the built module output is versioned.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Add Sample
- Convert SamplerHashtableToString
- Get BuiltModuleVersion
- Get ClassBasedResourceName
- Get CodeCoverageThreshold
- Get MofSchemaName
- Get OperatingSystemShortName
- Get PesterOutputFileFileName
- Get Psm1SchemaName
- Get SamplerAbsolutePath
- Get SamplerBuildVersion
- Get SamplerBuiltModuleBase
- Get SamplerBuiltModuleManifest
- Get SamplerCodeCoverageOutputFile
- Get SamplerCodeCoverageOutputFileEncoding
- Get SamplerModuleInfo
- Get SamplerModuleRootPath
- Get SamplerProjectBuildInfo
- Get SamplerProjectName
- Get SamplerSourcePath
- Invoke SamplerGit
- Merge JaCoCoReport
- New SampleModule
- New SamplerJaCoCoDocument
- New SamplerPipeline
- Out SamplerXml
- Set SamplerPSModulePath
- Split ModuleVersion
- Update JaCoCoStatistic