Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions docs/using/PIPELINE_VERIFICATION.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
= Pipeline Verification Jenkinsfile Runner
:toc:
:toc-placement: preamble
:toclevels: 3

Jenkinsfile Runner provides a specific command usable to
verify a pipeline without executing it (which
run does).

== How to use it

terminal::

[source]
----
java -jar \
-Dapp.repo=./path/to/repo \
target/jenkinsfile-runner-standalone.jar lint \
-f ../goodJenkinsFile \
-w ../.jenkinsfile-runner/war/{jenkins-vers}/jenkins \
-p ../path/to/plugins
----

== When to use lint instead of run?

Users should use lint instead of run when there's no
need to run a pipeline but just the interest in checking its correctness

PROS:

* Faster time execution.
* Doesn't execute the pipeline, which might have unwanted effects or change the state of other systems.

lint command:

image::lint-command.gif[lint command example]

run command:

image::run-command.gif[run command example]







Binary file added docs/using/lint-command.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/using/run-command.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.