This is an automated email from the ASF dual-hosted git repository.
ricardozanini pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-docs.git
The following commit(s) were added to refs/heads/main by this push:
new c4cd9adb7 [KOGITO-8792] Add the restart build notes to the build guide
(#521)
c4cd9adb7 is described below
commit c4cd9adb7077282c1dd0998aac8c40fd3799377f
Author: Ricardo Zanini <[email protected]>
AuthorDate: Tue Dec 26 18:30:08 2023 -0300
[KOGITO-8792] Add the restart build notes to the build guide (#521)
Signed-off-by: Ricardo Zanini <[email protected]>
---
.../cloud/operator/build-and-deploy-workflows.adoc | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git
a/serverlessworkflow/modules/ROOT/pages/cloud/operator/build-and-deploy-workflows.adoc
b/serverlessworkflow/modules/ROOT/pages/cloud/operator/build-and-deploy-workflows.adoc
index 5d8cc808d..24c70313d 100644
---
a/serverlessworkflow/modules/ROOT/pages/cloud/operator/build-and-deploy-workflows.adoc
+++
b/serverlessworkflow/modules/ROOT/pages/cloud/operator/build-and-deploy-workflows.adoc
@@ -538,6 +538,29 @@ If everything is working, you should receive a response
like this:
{"id":"b5fbfaa3-b125-4e6c-9311-fe5a3577efdd","workflowdata":{"name":"John","language":"English","greeting":"Hello
from JSON Workflow, "}}
----
+== Restarting a build
+
+If you require to restart the build for some reason, you can add or edit the
annotation `sonataflow.org/restartBuild: true` in the `SonataFlowBuild`
instance.
+
+For example:
+
+.Example of a SonataFlowBuild marked to restart
+[source,json,subs="attributes+"]
+----
+apiVersion: sonataflow.org/v1alpha08
+kind: SonataFlowBuild
+metadata:
+ name: greeting
+ annotations:
+ sonataflow.org/restartBuild: true
+----
+
+After editing the resource, the operator will start a new build of the
workflow. Once this is finished, the workflow will be notified and updated
accordingly.
+
+If the build fails, but the workflow has a working deployment, the operator
won't rollout a new deployment.
+
+Ideally you should use this feature if there's a problem with your workflow or
the initial build revision.
+
// TODO: add a troubleshooting guide -
https://issues.redhat.com/browse/KOGITO-8864
== Additional resources
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]