Skip to content

Latest commit

 

History

History
66 lines (43 loc) · 2.22 KB

README.md

File metadata and controls

66 lines (43 loc) · 2.22 KB

Teamscale plugin for Jenkins

Plugin for Jenkins that provides an after build step task for uploading external code coverage to teamscale.

Getting started

See documentation

For Developers

Fork or clone https://github.com/jenkinsci/teamscale-upload-plugin
create a new branch with name specifying what you want modify

Building

To build the project locally

mvn hpi:run

To package as .hpi and .jar for manual installation in jenkins

mvn package

Testing

To run all tests either via maven

mvn test

or the unit tests in your IDE.

Manual testing

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.

Publishing

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