The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
cmake
: Run cmake with arbitrary argumentsinstallation
String
arguments
(optional)
String
ignoredExitCodes
(optional)
String
label
(optional)
String
workingDir
(optional)
String
cmakeBuild
: Generate build-scripts with cmake and execute themcmake
with the given options to generate the build scripts.
To run the generated build script, you have to add build tool invocation steps.
For example, to run the equivalent of thesh
shell script
mkdir build && cd build
cmake -G Ninja <workpace-root>/source
DESTDIR=<workpace-root>/artifacts ninja all install
you would enter the following pipeline script:
cmakeBuild
generator: 'Ninja',
buildDir: 'build',
sourceDir: 'source',
installation: 'InSearchPath',
steps: [
[args: 'all install', envVars: 'DESTDIR=${WORKSPACE}/artifacts']
]
installation
String
buildDir
(optional)
String
buildType
(optional)
String
cleanBuild
(optional)
boolean
cmakeArgs
(optional)
String
generator
(optional)
String
label
(optional)
String
preloadScript
(optional)
String
sourceDir
(optional)
String
steps
(optional)
args
(optional)
cmake
. Arguments must be separated by spaces but may contain spaces if they are enclosed in double quotes (will be handled like a Unix shell does),
String
envVars
(optional)
DESTDIR=${WORKSPACE}/artifacts/dir
KEY=VALUE
String
withCmake
(optional)
$CMAKE_BUILD_TOOL
) or to have cmake
run the build tool (by invoking cmake --build <dir>
).
boolean
cpack
: Run cpackinstallation
String
arguments
(optional)
String
ignoredExitCodes
(optional)
String
label
(optional)
String
workingDir
(optional)
String
ctest
: Run ctestinstallation
String
arguments
(optional)
String
ignoredExitCodes
(optional)
String
label
(optional)
String
workingDir
(optional)
String
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.