From 5c80f563e74c1f118dadf63fc820cf24466f76ab Mon Sep 17 00:00:00 2001 From: mstg Date: Thu, 23 Mar 2017 04:19:30 +0100 Subject: [PATCH] README: Better declarative pipeline example --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 92b4348..44ef751 100644 --- a/README.md +++ b/README.md @@ -141,9 +141,16 @@ The plugin supports the new [declarative pipeline syntax](https://github.com/jen ``` pipeline { agent any + post { + failure { + updateGitlabCommitStatus name: 'build', state: 'failed' + } + success { + updateGitlabCommitStatus name: 'build', state: 'success' + } + } options { gitLabConnection('