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 : String
(optional)
ignoredExitCodes : String
(optional)
label : String
(optional)
workingDir : String
(optional)
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 : String
(optional)
buildType : String
(optional)
cleanBuild : boolean
(optional)
cmakeArgs : String
(optional)
generator : String
(optional)
label : String
(optional)
preloadScript : String
(optional)
sourceDir : String
(optional)
steps
(optional)
args : String
(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),
envVars : String
(optional)
DESTDIR=${WORKSPACE}/artifacts/dir
KEY=VALUE
withCmake : boolean
(optional)
$CMAKE_BUILD_TOOL
) or to have cmake
run the build tool (by invoking cmake --build <dir>
).
cpack
: Run cpackinstallation : String
arguments : String
(optional)
ignoredExitCodes : String
(optional)
label : String
(optional)
workingDir : String
(optional)
ctest
: Run ctestinstallation : String
arguments : String
(optional)
ignoredExitCodes : String
(optional)
label : String
(optional)
workingDir : String
(optional)
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.