Set of CI/CD plugins that allow to implement application security testing (AST) in build pipelines using Positive Technologies Applivation Inspector tool (link).
Starting with plugins version 3.6.2 Gradle build script use com.palantir.git-version plugin to include SCM commit hash to manifests. That means you need use git clone
command to download sources.
To build plugins bundle using Gradle you need to execute build
Gradle task:
$ ./gradlew build
Jenkins and Teamcity plugins will be built for CI versions defined in gradle.properties
file but may be redefined using -P
option:
$ ./gradlew build -P jenkinsVersion=2.150.2 -P teamcityVersion=2020.1
Execute gradlew integrationTest
command in project root. PT AI server URL and API token are to be set in ptai.url
and ptai.token
environment variables accordingly.
Execute docker run
command in project root:
docker run --rm -u root -v "$PWD":/home/gradle/project -w /home/gradle/project gradle:6.8.3-jdk8 gradle build --no-daemon
Execute docker build
command in project root:
docker build --tag ptai-ee-tools:latest .
Start container using docker run
command:
docker run --rm -it ptai-ee-tools:latest
Both Jenkins and Teamcity Gradle plugins are support starting CI server in debug mode that allows plugin developer to connect to server using IDE tools and debug plugin code.
To start Jenkins with debug port 8000, execute server
Gradle task with --debug-jvm
flag:
$ ./gradlew server --debug-jvm
See additional info on gradle-jpi-plugin page.
To start Teamcity server and agents with debug ports 10111 and 10112 accordingly, execute startTeamcity
Gradle task:
$ ./gradlew startTeamcity
Teamcity distribution is to be downloaded and installed prior to starting:
$ ./gradlew downloadTeamcity
$ ./gradlew installTeamcity
See additional info on gradle-teamcity-plugin page.