Jenkins : ecs-publisher Plugin

TrustSource Plugin 4 Jenkins

Jenkins plugin to transfer dependency information to TrustSource service (OpenSource Compliance & Vulnerabilities). It does not only allow transferring the dependencies and automated vulnerability assessment but also to warn or break builds depending on legal status. Find more about trustSource at https://app.trustsource.io


Requirements

  • Chart.js >= 2.6.0

  • org.apache.httpcomponents.httpclient >=4.5.3

  • org.apache.httpcomponents.fluent-hc >=4.5.3

Supported plugins

Installation

There are two ways to install that plugin.

1) installation through jenkins

To do that go to plugin manager page on jenkins and click on "available" tab(/pluginManager/available).

Then find plugin by name "ecs-publisher", toggle checkbox and click install.

2) install from source
Run the following commands:


# Clone source code
git clone git@github.com:jenkinsci/ecs-publisher-plugin
# Generate *.hpi package
mvn package
# package will be located at target/ecspublisher.hpi


Then go to plugin manager page on jenkins and click on "advanced" tab(/pluginManager/advanced).

Then find upload plugin block and choose *.hpi package and click upload.

Usage

  • First you need to setup global configuration for this plugin.
    You can skip that step if you want to save configuration under step definition.
    Go to "Manage Jenkins" and click "Configure System" configure(/configure).

    Then find block called "TrueSource publisher", change configuration and click "save"

  • Secondly you need go to project configuration
    • Add post-build action called "ecspublisher"
    • Type project name
    • If your project has different structure you can specify paths to plugins
    • You can override global configuration just toggle checkboxes
    • Click "save"


After you add post-build action it will automatically create two pages ECS analysis for build and project.

Development

This plugin can be built and started with maven and Jenkins hpi plugin:
Just run command:

./run

Jenkins will be available on port [8089](http://localhost:8089/jenkins)

Deploy


mvn release:prepare release:perform