Capture build parameters as html report in Jenkins - html

As part of release management process, there can exist parallel releases targeting to overlap on environments.
Whats the best way to capture build parameters in Jenkins and add to a custom HTML report.
Like i want to see the following in the report ...
1. Build parameters used in build#XXX of build_job_releaseYYY
2. Sort the tabular report of build parameters to see how many releases have gone through Test1 environment etc
The approach i was thinking ...
Create an xml node for every set of build parameter ..
Some how keep adding these nodes to an xml - buildReport.xml
Generate an html report BuildReport.xml from the buildReport.xml to display a table of the node
The html report should be sortable.

There is the simple parameterized build report which may do what you want as it list the build parameters used in individual builds
This report is available of the job page as a link

Related

How to merge multiple cucumber results into a single report?

I have a strong test suit built using Cucumber - WATIR. Also I am using pretty face reports to generate test execution report which gives a crispy dashboard. Along with that I also do create HTML and json reports too.
I set up all the reports to be generated in a folder with the day, and browser name. so today it would be like 11-15/IE9/ and 11-15/FIREFOX/ etc. So I need a way to prepare a report where I should get a report which should be a merge of all the reports. Any suggestion how to achieve will be highly appreciated.
How can I do this with generated json or html reports?
Also a thought in my mind is , any how I am having pretty face report, where I am getting a dashboard with name index.html inside 11-15/IE9/ and 11-15/FIREFOX/, I want to create a dynamic HTML page where it reads all the datefiles/browser creates links to the index.html on it.
Awaiting any new idea or any enhancement to my existing idea.

T-SQL Notification - Use HTML to create Chart/Graph

Is it possible to use xml and html to create a chart or graph to include in an email notification from MSSQL Server?
Has anyone done this before? Any suggestions?
For example: A chart visually representing the amount of receiving hours required in the warehouse for the next couple weeks.
It can be tedious but this method works:
Export the data from T-SQL (probably as a JSON) or directly use the database from .Net application.
Now create a word template with some graphs (Line/Bar/Pie Chart or whatever) and bookmark it with some name 'my_chart'
Now include Microsoft.Office.Interop.Word & Microsoft.Office.Interop.Excel references in your C# project. (Google it & see this also)
Now in your C# project access those Graphs in word file using bookmark name & populate it with Data from database. (See this)
It may take some time but if your requirement is worth it you can do this.
Also you don't need to study C#(it's very similar to Java) for this, just see interop C# syntax as you keep going BUT if you want see C# documentation for any reference.
Refer this tutorial also.

How to default a SSRS report to PRINT PREVIEW

I am converting access reports to SSRS reports for a client application. The Clients requirement is, when they open a SSRS report, it should by default open with Print Preview. I am unable to find a property in SSRS which sets it. Any suggestions? or any help?
Please!
Nope, but I have to assume you mean when they open the 'ReportViewer' that they can immiediately see the option to save the file. However.... SSRS has some pretty cool features built into it that you can do depending on access rights and levels.
You can give a user a rest URI that can set a 'format' to render to and thus give them the report in that format. Good for Excel and PDF junkies. It works like this: ( ENSURE you understand that the landing page for SSRS is usually Reports and the SERVICE is usually ReportServer)
http:// (servername)/ReportServer/Pages/ReportViewer.aspx?%2f(directoryName)%2f(reportName)&rs:Command=Render&rs:Format=PDF
The rest URI on SSRS's service is pretty cool as you can put parameters in, set rendering options, and choose other options.
Expanding on 1 if your client needs something on a custom viewer, you can consume an SSRS web service in a form object in HTML like so:
<form id="frmRender" action="http:// (servername)/(pathtoreport)" method="post"
target="_self">
<H3>My Report Title</H3>
Render in the following format:<br/>
<Select ID="rs:Format" Name="rs.Format" size=1>
<Option Value="HTML4.0">HTML 4.0</Option>
<Option Value="PDF">PDF Format</Option>
</Select>
</form>
This would give a person that can't take the extra second to hit print preview to only be offered two choices of either HTML or PDF
Still not enough? Well you can extract out the SSRS service to a local C# or VB.NET class proxy object and then build a custom .NET interface for a client to build the reports yourself in binary formats. I have done this for custom interaction in existing services that when an event happens a report needs to go out. Be aware this process is pretty time consuming so I would suggest parts 1 and 2 unless you want to dive deep into RDL language code. If so I would read this other thread on diving deeper: Programmatically Export SSRS report from sharepoint using ReportService2010.asmx

Deploying a simple report with a shared dataset

I've created a new SSRS project, and added a shared data source. When I run the project, I get the expected result succesfully.
However, when I try to deploy the report I get:
Error: Cannot deploy the report because the shared data source '/Data Sources/DataSource1' that the report references does not exist on the report server.
I'm guessing I am missing something very simple and critical because I am a complete beginner.
What am I doing wrong?
First, deploy the data source:
Then, deploy any necessary shared datasets:
Now, you'll be able to deploy or run your report.
If trying to deploy dataset but still getting this error...
I have discovered that if you change the name of the shared data source after you have already created a corresponding shared dataset, then the "DataSourceReference" property in the dataset does not change accordingly, is not be editable via the wizard, and it will throw this misleading error.
On the shared dataset, right-click and go to "Open With..." --> "XML (Text) Editor".
There you will see the raw configuration file. Make sure the <DataSourceReference> node has the proper value...
Scenario: You've decided to use a Shared Dataset on your report but you haven't used it. Make sure to select the proper datasets for this issue.
Answer with steps:
On the Report Data tab on your SSDT double click the Datasets(not the one with the folder sign). It'll open the Dataset Properties.
- when the Dataset properties is open make sure to select a Dataset that your report is suppose to use.
-press OK.
-Solved]1

Error using Dynamic Data Filtering: missing datasource

I am trying to use the ASP.NET Dynamic Data Filtering project, but I'm running into a problem during the configuration.
I'm following the instructions on the author's blog, and everything works like described. Then it tells me to change the datasource using the designer view. I am told to select the "GridDataSource" in the "Configure data source" wizard. This option is not there though.
I get all of the classes in my project, including the DataContext that was generated by Linq. When I choose "Show only DataContext objects", the dropdown ("Choose your context object:") is completely empty.
When I turn of the checkbox and choose my DataContext class, I get asked which table I want and all that. But, as the whole purpose of a Dynamic Data site is NOT to use one single table, that's not much help.
So I've looked at the instructions again and copied the resulting datasource from the example:
<asp:DynamicLinqDataSource ID="GridDataSource" runat="server"
EnableDelete="True" EnableUpdate="True"></asp:DynamicLinqDataSource>
Which is exactly what I had, without the "WhereParameters" nodes in there.
Now, when I run the list page however, I get an exception about a missing datasource from the filtering component. Of course when I remove the DynamicFilterRepeater, it works again.
This is the meat of the exception:
[InvalidOperationException: Missing DataSource]
Catalyst.Web.DynamicData.DynamicFilterRepeater.GetTable() in D:\Catalyst\Projects\DynamicData\Project\Trunk\DynamicData\DynamicData\DynamicFilterRepeater.cs:74
Catalyst.Web.DynamicData.DynamicFilterRepeater.GetFilters() in D:\Catalyst\Projects\DynamicData\Project\Trunk\DynamicData\DynamicData\DynamicFilterRepeater.cs:81
Catalyst.Web.DynamicData.DynamicFilterRepeater.OnInit(EventArgs e) in D:\Catalyst\Projects\DynamicData\Project\Trunk\DynamicData\DynamicData\DynamicFilterRepeater.cs:106
How do I make the DynamicFilterRepeater recognize my datasource?
I'm using VS2010 Pro, on a Win7 machine.
have you looked at the sample project you get when you download the source code.
Have a look at my blog post here Dynamic Data Filtering – Installation