Posts

How can TeamCity generate Release notes from JIRA during a build

Image
How can TeamCity generate Release notes from JIRA during a build
Problem:  I want TeamCity to generate release note list during the builds. I am using JIRA to store my user stories.  
Solution: I am going to create a PowerShell script that will query all my closed items (using JQL), then store that list in my DB (via POST API)
Steps: 1) Create a power PowerShell script that will:
        a) Call a search JIRA API to query my items using JQL
        b) Post the results to my Web API. 2) Create a local API that will take a post request that contain a list of items 3) Call your PowerShell script from your JIRA and pass to it your parameters 


STEP 1.A & 1.B: Create a PowerShell script that will take few parameters: User namepassworddomain Your Web API  Server name

You can modify this script to add more parameters if you want. Here is how you will call your PowerShell script (for testing)
PowerShell.exe  -File "C:\GetReleasNotes.ps1" USER_NAME PWD DOMAIN_NAME SERVER_NAME

Here …

DataTables server-side processing example feeding from SharePoint 2010 search service plus Reformatting Columns To Hyperlink

DataTables server-side processing example feeding from SharePoint 2010 search service plus Reformatting Columns To Hyperlink 
My SharePoint search started to return a huge number of records back so I decided to use the service side processing technique.  I didn't see any example in the internet so I decided to publish mine.
Step 1So here is my HTML Markup to create the page
 <table id="GADIR-datagrid" >           <thead>               <tr>             <th>ID</th>             <th>Name</th>             <th>Number</th>             <th>Supervising Partner</th>             <th>Billing address</th>             <th>Filing address</th>             <th>Status</th>             <th>Open Date</th>             <th>Close Date</th>             </tr>           </thead>       </table> 

Step 2And here is my Script top populate the grid from the Share Point service 

How to create a batch command file to build your Visual Studio Solution

Create a batch file ".bat" file under the same directory of your solution and paste the following commands into that file.

net stop w3svc@echo offsetlocalpushd "%~dp0"set MSBUILDEXE=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exeif not exist "%MSBUILDEXE%" (    echo Microsoft Build Engine ^(MSBuild^) 4.0 does not appear to be     echo installed on this machine, which is required to build the     echo solution.    exit /b 1)for %%i in (debug release) do if exist "%MSBUILDEXE%" "%MSBUILDEXE%" MySolutionNameHere.sln /p:Configuration=%%ipopdnet start w3svc
Save the file in your solution directory.Replace the "MySolutionNameHere.sln" with your solution name.Run the batch file



An easy way to install or reinstall SharePoint 2010 on your window 7

If you (like me) want an easy way to install or reinstall SharePoint 2010 on your window 7 laptop or PC with ease, then give this PowerShellscripts a try, and let it do the work for you. The script will prompt you twice to get: the path to the setup.exe for SharePoint 2010     the product key (giving you the option to choose between Enterprise or Standard It will add and remove windows components, download prerequisites, install the prerequisites, update the config.xml file, and install the SharePoint 2010… What more can we ask. Note, I had to make a modification in my case to skip the OfficeServer.exe insulation   http://gallery.technet.microsoft.com/scriptcenter/a88cad83-f595-4487-940e-f678ce47eb5f

Where is my Dashboard designer?

Finding SharePoint performance point Dashboard designer tool was a little tricky. It’s a click once download that is not available anywhere in MSDN downloads or any other place. However you can download it from your Business Intelligence Center page in SharePoint.
To make your life easier, if you ever need it and you already have PerformancePoint installed on your SharePoint sever then here is how you can get it:
1)Open your browser as an admin user 2)Go to this URL http://<server-name>/sites/<site>/Pages/ppssample.aspx 3)Click the “Run Dashboard Designer” and let it download the tool for you.
In highly customized SharePoint 2010 sites this page can be hard to find.