JaCoCo report sort controls inactive in Jenkins - jenkins

Our build uses Maven to generate an aggregate JaCoCo report. When Jenkins builds our project and publishes the report, the sort controls in the column headers do not work when the report is viewed inside Jenkins.
Is there a way to make these controls work?
These controls work when a developer builds on his workstation. They also work if you click "Zip" at the top of the Jenkins page, and download and unpack the report web pages and view the local copies. They only seem to not work when viewed from the link Jenkins provides on the job's build page.
In Jenkins, the configuration to publish the report is from a post-build step "Publish HTML report". The entire jacoco report folder is copied with root page "index.html". All three "advanced" options are checked (keep past reports, link to last build, allow missing reports) and we copy everything (**/*) Jenkins is 2.121 running on Windows Server 2012. Report generated by Maven 3.5.3 and Jacoco maven plugin 0.8.1. Browsers tried - MSIE 11, Google Chrome 66.0.

Related

Sonarqube analysis per commit(only the changes) before publishing the results to sonarqube dashboard.

Is there anyway in sonarqube where we can run analysis on the files which have been changed by commit and get the code smells before publishing the code smells to sonar dashboard. Currently we have integrated the sonarqube analysis with Jenkins as a Job to run on a daily basis.
I saw a nice answer in sonarQube site:
You can get the list of changed files from the github api and then
plug it into sonar.inclusions . Simple.
In context to jenkins,
create a sonar.properties file (using shell)
make a github api
call and fetch the list of files changed with their api.
insert
the above fetched value inside the sonar.properties file
(sonar.inclusions=) (open file in write mode)
and pass this sonar
file to the build configuration (maven, ant etc)
In this way , there would be new sonar inclusions for each PR in
jenkins.

How can I integrate output from a Cake build into a TFS 2013 build?

We're using cake for defining our .NET builds, primarily so we can run the same build on developer stations as on the build server. TFS 2013 is our actual CI platform; the build workflow is effectively just a RunScript activity which invokes powershell and runs cake via its build.ps1 script.
The basic build is working well enough, and I'm on to having it generate reports (unit test results, coverage reports, etc). I'd like to have these reports appear in the build's Summary screen, but at the moment the only feedback the build gives me is the console output from cake under the build logs. The report files are being generated and dropped into the build's ./tst/ folder, but the contents of that folder aren't appearing anywhere in the build information.
How can I get test reports to be added to the build summary and/or information pages?
With the default build process template, when you build a test project, you will be able to get test result and code coverage (if you enable it) by default. So if you use VS Test Runner to run the tests, you can refer to the default process template.
If you need other tool to run the teats, you can add the InvokeProcess activity (execute the command line) to invoke the tool to test your project in build process template.
In addition, you can use the WriteCustomSummaryInformation activity in your workflow. The result is that you can display results, hyperlinks, and more on the build summary page.

Published Modules is disabled in Artifactory (using Jenkins Artifactory plugin)

We have successfully our deployed artifacts with Jenkins - Artifactory plugin, however we cannot see them in Artifacts => Builds => Published Modules tab.
We can see the link as below:
If we click onto this link, the upcoming screen is completely disabled and empty.
Shouldn't we have the downloadable link of our deployed artifacts in this final screen?
You are using Opensource version of Artifactory, which only allows browsing the buildInfo JSON file, not the Build Browser tabs.
You can replace the artifactory.war file to a pro version one (free 30 days trial), restart Artifactory and see all the information in the tabs.

How to integrate PMD, Maven and Hudson?

I tries one scenario to integrate these tools, but it giving unbelievable output. What I did:
I did not configure or install PMD in Hudson.
I configured PMD in my parent pom.
I run goals (clean site) the in Hudson job, but it running only last sub project.
I check log in console, it has:
some svn update log
Parsing POMs
and directly generating reports for last sub project.
I have same svn checkout workspace in Eclipse, it working and generating reports for all parent and child projects. Actually, after verify in Eclipse only, I try to verify in Hudson.
And after try to configure PMD in Hudson, but I did not find any help online to do that.
We are using jenkins and maven, artifactory and sonar (which contains PMD, Checkstyle, Findbugs and others).
I didn't set it up however there are plugins for (nearly) everything:
Jenkins Artifactory Plugin
Jenkins Maven Plugin
Jenkins Sonar Plugin
But it is possible to do it your way and use PMD "directly". Hava a look here...

How to deploy an html website without a solution/project file

I'm running TFS 2012 with a build to deploy an asp.net application but now I'm trying to create a build to deploy an html site, that's our html mockups folder. The developer is using eclipse and is able to check in his changes to TFS. It's simply a number of html pages that we want to publish to the QA server on check in.
When setting the build, I have to enter the "Items to build" but I don't have a solution/project to build.
Thanks
How would you deploy it manually? If it's a simple file copy you can customize your build workflow to do that. Alternatively, you could create a MSBuild file (.build) that did it, check the build script in, and point to that for your Items To Build.

Resources