While testing deploy jobs on Sandbox is not impossible,
currently it needs manual editing of job configuration.
With this, the comment text can be added
when starting job manually in Sandbox.
Issue: RELENG-5184
Change-Id: I38528702b6da3dd359d058521ee39469b17f4265
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Provides parameters required by CMake. Use in any jobs that need to call the
``cmake && make && make install`` pattern.
+lf-gerrit-event-comment-text-parameter
+--------------------------------------
+
+Provides the value for GERRIT_EVENT_COMMENT_TEXT,
+needed for jobs triggerable via a gerrit comment
+when starting them via "Build with parameters" instead.
+For example when testing jobs on Sandbox.
+
lf-infra-maven-parameters
-------------------------
- lf-infra-jjb-parameters:
jjb-cache: "{jjb-cache}"
jjb-version: "{jjb-version}"
+ - lf-gerrit-event-comment-text-parameter:
+ comment-text: "$GERRIT_EVENT_COMMENT_TEXT"
wrappers:
- lf-infra-wrappers:
default: "{make-opts}"
description: "Options to pass to make. Example: -j8"
+- parameter:
+ name: lf-gerrit-event-comment-text-parameter
+ # GERRIT_EVENT_COMMENT_TEXT parameter is usually provided
+ # by the triggering gerrit comment.
+ # Having it as parameter is useful for "Build with parameters",
+ # for example when testing (otherwise gerrit comment triggered)
+ # jobs on Sandbox.
+ parameters:
+ - string:
+ name: GERRIT_EVENT_COMMENT_TEXT
+ default: "{comment-text}"
+ description: "Simulated gerrit comment when triggering manually."
+
- parameter:
name: lf-infra-maven-parameters
parameters: