This BP step leverages License Finder
LicenseFinder works with your package managers to find dependencies, detect the licenses of the packages in them, compare those licenses against a user-defined list of permitted licenses, and give you an actionable exception report.
- Clone the code available at BP-LICENSE_FINDER-STEP
- Build the docker image
git submodule init
git submodule update
docker build -t ot/license_finder:0.1 .
- Do local testing
docker run -it -v $PWD:/src -e WORKSPACE=/ -e CODEBASE_DIR=src ot/license_finder
-
Register License Finder Step in BP
-
Update your job template to leverage the BP step
-
First of all, login to your Buildpiper server.
-
Click on the
Step Catalogs
option.
- Then click on the
New Step
option.
-
Now entry the
Step Name
andStep Code
. -
Select the
Step Category
.
- Select the
Step Type
.
- Add the
Add Mount Details
and select theMount Name
from the drop down.
- Now select the
Env. build data path
and add theEnvironment Variable
.
-
After providing all the requried fields now click on the
Save
option -
And save the
Step
.
-
- License Finder Step comes with a global list of approvate licences available at Whitelisted Licenses
- MIT
- Apache 2.0
- The GNU General Public License, Version 2
- LGPL
- GNU LESSER GENERAL PUBLIC LICENSE
- Common Public License Version 1.0
- CDDL + GPLv2 with classpath exception
- GNU Lesser General Public License, version 2.1
- Public Domain