Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Lavinia Cioloca committed Jun 8, 2020
2 parents f9c2afa + 09cc561 commit 67997b5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,18 @@ After Jenkins restarts you have to:

Optional step: If you want the build to fail based on the results of DuDeJenkinsPlugin:
* Install from **Plugin Manager** the [Post build task plugin] (https://plugins.jenkins.io/postbuild-task/) which allows to specify in a shell script the criteria for build's success/fail in Jenkins **Post-build Actions** section

* As a **Post build task** for this plugin select the following configuration:
* Log text: `DuDe analysis finished!`
* Operation: `AND`
* Script:

```sh
export maximum_duplication_percentage_in_project=20.0

export maximum_duplication_percentage_increase_allowed=5.0

sh DuDe-analysis.sh
```

* And check the checkbox for `Escalate script execution status to job status`

0 comments on commit 67997b5

Please sign in to comment.