Add-Release

NAME
Add-Release

SYNOPSIS
Adds a new release to a CodePlex project

SYNTAX
Add-Release -projectName <String> -releaseName <String> [-releaseDescription <String>] -releaseStatus <String> -Public -Default -userName <String> -password <String> <CommonParameters>

DESCRIPTION
Add a new release to a codeplex project. This function uses the CodePlex webservices API to add a new release.
You need to use Upload-Release function add files to a release.

PARAMETERS
-projectName <String>
Project Name of a codeplex project.

-releaseName <String>
Release Name of a codeplex release under the specified project.

-releaseDescription <String>
Release description of a codeplex release under the specified project. If not specified, release name will be u
sed as release description

-releaseStatus <String>
Release status of a codeplex release. The value of this parameter can be "planning" or "alpha" or "beta" or "st
able"

-Public <SwitchParameter>
If specified, the release will be made visible to public

-Default <SwitchParameter>
If specified, the release will be made the default release in the CodePlex project

-userName <String>
UserName to authenticate to the codeplex prject and create a new release. Remember, this user should have devel
oper rights, at least.

-password <String>
Password to authenticate to the codeplex prject and create a new release.

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

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

C:\PS>Add-Release -projectName "PSCodePlex" -releaseName "PSCodePlex 0.2" -releaseStatus "Beta" -userName "xxxx" -p
assword ""

Description
-----------
The above example creates a new private release under PSCodePlex project which is not the default release.

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

C:\PS>Add-Release -projectName "PSCodePlex" -releaseName "PSCodePlex 0.2" -releaseStatus "Beta" -userName "xxxx" -p
assword "" -public

Description
-----------
The above example creates a new public release under PSCodePlex project which is not the default release.

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

C:\PS>Add-Release -projectName "PSCodePlex" -releaseName "PSCodePlex 0.2" -releaseStatus "Beta" -userName "xxxx" -p
assword "" -public -default

Description
-----------
The above example creates a new public release under PSCodePlex project which is the default release.

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

C:\PS>$descriptionText = String(Get-Content C:\Scripts\CodePlex\ReleaseNotes.txt)

Add-Release -projectName "PSCodePlex" -releaseName "PSCodePlex 0.2" -releaseDescription $descriptiontext -releaseStatus "Beta" -userName "xxxx"
-password ""

Description
-----------
The above example creates a new private release under PSCodePlex project with the contents of C:\scripts\CodePlex\r
eleasenotes.txt as the release description

REMARKS
To see the examples, type: "get-help Add-Release -examples".
For more information, type: "get-help Add-Release -detailed".
For technical information, type: "get-help Add-Release -full".

Upload-Release

NAME
Upload-Release

SYNOPSIS
Uploads files to a release on CodePlex

SYNTAX
Upload-Release -projectName <String> -releaseName <String> -releaseFolderPath <String> -releaseType <String> -userName <String> -password <String> <CommonParameters>

DESCRIPTION
Uploads files to a release on CodePlex. This function uses the CodePlex webservices API to upload files to a releas
e. As of release 0.2, you need to put all release files in a folder and provide that as value to releaseFolderPath parameter.

PARAMETERS
-projectName <String>
Project Name of a codeplex project.

-releaseName <String>
Release Name of a codeplex release under the specified project.

-releaseFolderPath <String>
Folder path containing all release files.

-releaseType <String>
Specifies the type of release. Value to this parameter can be "RunTimeBinary" or "Source Code" or "Documentatio
n" or "Example"

-userName <String>
UserName to authenticate to the codeplex prject and create a new release. Remember, this user should have devel
oper rights, at least.

-password <String>
Password to authenticate to the codeplex prject and create a new release.

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

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

C:\PS>Upload-Release -projectName "PSCodePlex" -releaseName "PS CodePlex 0.2" -releaseFolderPath c:\Scripts\CodePle
x -releaseType "SourceCode" -userName "xxxx" -password ""

Description
-----------
The above example uploads release files to a new release on CodePlex.

REMARKS
To see the examples, type: "get-help Upload-Release -examples".
For more information, type: "get-help Upload-Release -detailed".
For technical information, type: "get-help Upload-Release -full".

Last edited Nov 20, 2010 at 9:01 AM by kanthrc, version 1

Comments

No comments yet.