This question already has an answer here:
karate-gatling report aggregation
(1 answer)
Closed 1 year ago.
I am execuiting my karate-gatling reports from teamcity. I have my reports folder structure like below
target/gatling/xmltest-201506234/index.html
The folder name with current timestamp, is there a way to use a wildcard and show it in reports tab for teamcity.
Or is there a way i can remove time stamp from the folder for gatling.
I have seen outPutDirectoryBaseName option for gatling but still it adds the timestamp to the basename
For cucumber reports I have path like this target/cucumber-html-reports/cucumber-feature.html
So in the reports configuration in teamcity i passed basepath as cucumber-html-reports/cucumber-feature.html and artifacts paths as target. So i am able to integrate reports with build.
Is there any way i can ahieve same for target/gatling/xmltest-201506234/index.html
I tried gatling/xml%/index.html its not working. Any help is appreciated.
Can't say for karate-gatling, but FrontLine, Gatling's Enterprise version, does have a plugin for TeamCity.
Related
I am new aspirant of DevOps and working on Oracle ci/cd using Jenkins. What I am looking for is, can I able to execute and deploy only recently changed SQL files using Jenkins CI/CD pipeline?
I have found similar blogs but not appropriate one. My task is to execute only recently changed or newly added SQL files (assume there are no dependencies) using jenkins pipeline.
For executing SQL files I am using flyway free edition and gitlab as SCM.
One of my idea is:
To check-in only recently commited files to Jenkins custom workspace and execute only that particular workspace.
Say for example,in current build if I change 4 files in gitlab, only these files need to be dumped on Jenkins custom workspace and my job should execute only those 4 files and for next build if I change only 2 files it should remove old files and new 2 files should be dumped and executed in that custom workspace.
Is this possible? I am not sure about it. If not this way, is there any other chances that can work for my current scenario?
I am trying to dump files to workspace so that I can able to copy these files from custom workspace to flyway and then flyway will execute them.
Current challenges are:
-To dump only recently changed files to my custom workspace
-To execute only that particular custom workspace (not main workspace)
I am not sure whether I posted it in understandable way😅, if my idea seems to be complex please provide any other related optimal solutions
Thanks in advance
I don't know if this has been asked before; from a quick search I couldn't find anything relevant, but please do forgive me if I've missed it.
My question is we need to send the jacoco.exec output file to Sonar without using any other tool like Jenkins etc.
Below are the steps we did to configure Jenkins & Sonar
Jacoco agent code is setup and injected into our Application server (with WAS Console)
SonarQube is installed and configured in another server
When we perform manual execution on the application, jacoco is generating a Jacoco*.exec output files (File is in binary format)
Our challenge is how do we send this output file to Sonar, such that it reads and generates reports in a readable format?
PS. When integrated this with Jenkins and Maven, we are able to export this report to Sonar and see the reports properly. But, without using Jenkins and Maven, is there a way to export the Jacoco.exec file to Sonar and generate the reports??
Hope I am clear with my question. Please respond if any part of the question is not clear.
Thanks in advance for ur help!!
I've used Jenkins CI for a few years and I want learn TeamCity.
In Jenkins I tracked FxCop issues by enabling code analysis on my .net projects and then telling the Violations plugin where to find the code analysis XML files i.e. MSBUILD would put a file named [project name].CodeAnalysisLog.xml in the build output directory and you could use something like **/*/*CodeAnalysisLog.xml to find those files with the Violations plugin.
TeamCity has its own FxCop runner but I don't want to run FxCop again because MSBuild has already done that for me.
I just want to be able to tell TeamCity where to find the XML files and have it produce the trend graph in the same way Jenkins does with the Violations plugin.
I have a similar issue with StyleCop, jsLint and cssLint. MSBuild build tasks or batch commands that run as part of the build produce XML output. I would like to use this output to create trend graphs.
To my knowledge TeamCity is different from Jenkins for the reports in a sense that it takes them in HTML format. That's what we have had to do for our code quality analysis product - convert our XML report to HTML for TeamCity. Due to that we can't do violation trend report when integrated with TeamCity unlike the Jenkins plug-in we have. We haven't looked whether there were TeamCity changes in the last couple of years that would enable the XML report input.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How can I get the last build date in maven context from Hudson? I need to pass that date back to Maven to generate a*changelog* report.Is there a better way to achieve that?
I am using Hudson 2.2.1 and Maven 3.x
Although it would help to understand what you are exactly trying to achieve, from what I understand,
Could you not maintain a properties file with a timestamp of the last build? The time stamp will be updated with each built.
You could read the last build time from this properties file and use it in whatever maven plugin you are using.
You may choose to check-in the properties file back to SCM to ensure that last build date is reflected to be same on all the individual machines. If you only need this on Hudson machine, you are good without putting this file into SCM.
Use the environment variable BUILD_ID to get the timestamp of the latest build.
The timestamp you get will be in YYYY-MM-DD_hh-mm-ss format. Use ZenTimestamp plugin to format it to the required format.
or
Install Hudson Groovy builder plugin and execute the groovy script to get the last build information
myjob = hudson.model.Hudson.instance.getItem("job_name")
lastbuild = myitem.getLastBuild()
println lastbuild.getTime()
I solved this a while ago. I thought that I should share this here as I originally asked this question. There is a REST call you can make in Hudson, which gives you the last successful build. A mixture of the rest call and xpath, you will get the last build date in the YYYY-MM-DD_hh-mm-ss format.
Maven Antrun task:
<loadresource property="build_start_date">
<url url="${JOB_URL}/lastSuccessfulBuild/api/xml?xpath=/*/id/text()"/>
</loadresource>
We use the build in coverage application in TeamCity 6 (about to upgrade to 7.1)
If we wish to see the code coverage (or other metrics) of a particular build it is fine as we can navigate to that build, but it would be great if we could pluck out a few interesting metrics from all/some of the current projects/build configurations and display them all together.
For convenience I would expect the new display to be accessible from within TeamCity itself, however if there are solutions that require a separate solution we could look at them.
If you want to compare a set of common metrics (e.g. code coverage) across different projects and over time then SonarQube is probably what you want.
You can integrate it with TeamCity by adding a sonar-project.properties file to each project and calling sonar-runner from a command line build step.