this is an example to show how you can use the REST api of Blackducksoftware hub.\n
Steps to take:
-
start a powershell
-
cd to a directory where you want to put this example
-
clone the project
git clone https://github.com/blackducksoftware/hub_powershell_api_example.git
-
cd hub_powershell_api_example
-
The following options are available to change via script parameters:
- serverUrl - The full url of the hub server (This is required)
- username - The username of the hub user to user (This is required)
- password - This password of the hub user (This is optional, will be prompted if omitted)
- curlCmd - If you need to use a different curl cmd than provided
-
run the poweshell script
./hubProjects.ps1 -server http://myhubserver.example.com -username myuser
``