Home

Awesome

Build-Info

Build Info Extractor plugin Gradle plugin

Scanned by Frogbot Tests

Overview

Build Info is Artifactory's open integration layer for the CI servers and build tools. The build information is sent to Artifactory in json format.

Building and testing the sources

export BITESTS_PLATFORM_URL='http://localhost:8081'
export BITESTS_PLATFORM_USERNAME=admin
export BITESTS_PLATFORM_ADMIN_TOKEN=admin-access-token
export BITESTS_ARTIFACTORY_PIP_ENV=/Users/user/venv-test/bin

See here how to generate an admin token for the above environment variable.

Building

When running the following commands to build the code, the entire testing suite is also executed. See the Testing section for configuration instructions prior to running the tests.

To build the code using the gradle wrapper in Unix run:

./gradlew clean build

To build the code using the gradle wrapper in Windows run:

gradlew clean build

To build the code using the environment gradle run:

gradle clean build

To build the code without running the tests, add to the "clean build" command the "-x test" option, for example:

./gradlew clean build -x test

Testing

To run all tests:

./gradlew clean test

Extractor tests

./gradlew clean build-info-api:test build-info-client:test build-info-extractor:test build-info-vcs:test

Maven tests

./gradlew clean build-info-extractor-maven3:test

Gradle tests

./gradlew clean build-info-extractor-gradle:test

npm tests

./gradlew clean build-info-extractor-npm:test

Go tests

./gradlew clean build-info-extractor-go:test

Pip tests

python -m venv buildinfo-tests-env
export BITESTS_ARTIFACTORY_PIP_ENV=/Users/user/buildinfo-tests-env/bin
./gradlew clean build-info-extractor-pip:test

NuGet tests

./gradlew clean build-info-extractor-nuget:test

Docker tests

docker run -d -v /var/run/docker.sock:/var/run/docker.sock -p 127.0.0.1:1234:1234 bobrik/socat TCP-LISTEN:1234,fork UNIX-CONNECT:/var/run/docker.sock
./gradlew clean build-info-extractor-docker:test

More about build-info

Read more about build-info in the Build Integration documentation.

Release notes

The release notes are available here.