Plugin for Jenkins that provides an after build step task for uploading external code coverage to teamscale.
See documentation
Fork or clone https://github.com/jenkinsci/teamscale-upload-plugin
create a new branch with name specifying what you want modify
To build the project locally
mvn hpi:run
To package as .hpi and .jar
for manual installation in jenkins
mvn package
To run all tests either via maven
mvn test
or the unit tests in your IDE.
Start Teamscale, create a project with a Git connector.
Start Jenkins with mvn hpi:run -Dhudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT=true -Dport=8081
.
Go to http://localhost:8081/jenkins/, create new Item, choose Freestyle project. Then set Source Code Management to Git and choose the same repository as in Teamscale (you can also use a file:///
URL) and add a Teamscale Upload Post-build Action. Set URL as http://localhost:8080/, add admin:admin user and configure the remaining settings. Click Build Now, then go to the Job and check the Console Output for the expected output. You should also see the report uploaded in Teamscale.
File a PR on master Ask a repository maintainer to approve the PR or become a maintainer yourself
Consider reading this to become a maintainer.
As Maintainer: Consider reading Releasing jenkins plugin
- Ensure you have the credentials for
maven.jenkins-ci.org
added to your~/.m2/settings.xml
as described here. - Run the following command
mvn release:prepare release:perform
- During the execution of the command enter the desired version numbers (performing and committing the changes happens automatically)
- Push the newly created tag to origin once the command succeeds