(english below)
In dieser Azure DevOps Nugget Blogserie werden alle zwei Wochen Features von Azure DevOps vorgestellt, die für Sie möglicherweise neu sind und die Arbeit mit Azure DevOps effizienter machen.
🕰️🤝🚀
Eine komplett autonom ablaufende Bereitstellung der zu entwickelnden Software ist zwar wünschenswert, aber manchmal werden manuelle Freigaben (Approvals) benötigt. Azure DevOps bietet für YAML-Pipelines zwei Möglichkeiten, die User zu informieren und die Ausführung bis zur Genehmigung zu unterbrechen:
- Wenn bereits Environments definiert sind (oder diese verwendet werden sollen), kann an ein Environment ein Approval Check angefügt werden. Vor der Bereitstellung auf ein Environment wird überprüft, ob alle Checks erfüllt sind. Ansonsten wird die weitere Ausführung unterbrochen, bis bspw. die Freigabe vorhanden ist.
- Zum anderen ist es möglich den “Manual validation” Task direkt in einer YAML-Pipeline zu verwenden. Dieser Task unterbricht die Durchführung der Pipeline in der aktuellen Stage / Job, bis eine Freigabe vorhanden ist. Es ist möglich, die Pipeline auch dann fortzusetzen, wenn keine Freigabe erteilt wurde. Hinweis: Der “Manual validation” Task (waitForValidation@0) ist aktuell noch in Preview.
Siehe auch:
Every two weeks, this Azure DevOps Nugget blog series will highlight features of Azure DevOps that may be new to you and can make working with Azure DevOps more efficient.
🕰️🤝🚀
While a fully autonomous deployment of developed software is desirable, sometimes manual approvals are required. Azure DevOps offers two options for YAML pipelines to notify users and pause execution until an approval is given:
- If environments are already defined (or should be used), an Approval Check can be attached to an environment. Before the environment is deployed, it will be verified if all checks are satisfied. Otherwise, further execution is interrupted until, in our example, the approval is received.
- On the other hand, it is possible to use the “Manual validation” task directly in the YAML pipeline. This task pauses the execution of the pipeline in the current stage / job until an approval is received. It is possible to continue the pipeline even if there was no approval given. Note: The “Manual validation” task (waitForValidation@0) is currently still in preview.
See also: