This configuration allows administrators of @phsft-bot bot to specify which compiler, platform, and compiler flags to build pullrequests on.
command ::= "@phsft-bot build" [platforms] [flags]
platforms ::= ("also"|"just") "on" platform { [","] platform }
platform ::= label/compiler
label ::= "centos7"|"mac1011"|"ubuntu14"
compiler ::= "gcc49"|"gcc62"|"native"|
flags ::= "with flags" { flag }
Note: The phrase can be ended by endline. What comes on the other lines will not be interpreted by the bot. Specified flags in the command will overwrite conflicting environment variables that is already set for the job.
Starts build on default build configuration.
Starts build on default build configuration and run all the tests.
Discards default build matrix configuration in Jenkins and builds only on Centos7/gcc49 and Ubuntu 14/native with the CMake flags -Dtcmalloc=ON
.
Same as previous example but does not discard default matrix configuration.
Same as previous example without any additional CMake flags.
To set this up, enter the Jenkins pull request job configuration and copy the contents of EnvLogic.groovy
to "Evaluated Groovy script" under "Prepare an environment for the run" and MatrixFilter.groovy
to the "Groovy Script" field under "Execution strategy" (make sure Groovy Script Matrix Executor Strategy) is selected. Under "This project is parameterized", make sure the ExtraCMakeOptions
parameter is prefixed with _
and the "Default Filter" for "Matrix Combinations Parameter" is empty. Default matrix configuration is now set under the contents of MatrixFilter.groovy.
To run the tests on the bot, run:
$ groovy BotTest.groovy