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
Stringarguments (optional)
StringignoredExitCodes (optional)
Stringlabel (optional)
StringworkingDir (optional)
StringcmakeBuild: 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
StringbuildDir (optional)
StringbuildType (optional)
StringcleanBuild (optional)
booleancmakeArgs (optional)
Stringgenerator (optional)
Stringlabel (optional)
StringpreloadScript (optional)
StringsourceDir (optional)
Stringsteps (optional)
argsargs (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),
StringenvVarsenvVars (optional)
DESTDIR=${WORKSPACE}/artifacts/dir
KEY=VALUE
StringwithCmakewithCmake (optional)
$CMAKE_BUILD_TOOL) or to have cmake run the build tool (by invoking cmake --build <dir>).
booleancpack: Run cpackinstallation
Stringarguments (optional)
StringignoredExitCodes (optional)
Stringlabel (optional)
StringworkingDir (optional)
Stringctest: Run ctestinstallation
Stringarguments (optional)
StringignoredExitCodes (optional)
Stringlabel (optional)
StringworkingDir (optional)
StringPlease 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.