Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
Build parameters not groovy variables anymore
Browse files Browse the repository at this point in the history
I had an issue when working with Build parameters, found the solution in JENKINS-40235 and added details here: http://stackoverflow.com/a/41276956/1092815
  • Loading branch information
GabLeRoux committed Dec 22, 2016
1 parent 9bbfcac commit bd8d95b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion TUTORIAL.md
Expand Up @@ -257,7 +257,16 @@ See Help in the **Snippet Generator** for the `withEnv` step for more details o

## Build Parameters

If you have configured your pipeline to accept parameters when it is built — **Build with Parameters** — they are accessible as Groovy variables of the same name.
If you have configured your pipeline to accept parameters when it is built — **Build with Parameters** — they are accessible as Groovy variables inside `params`. Example:

```groovy
node {
sh "isFoo is ${params.isFoo}"
sh "isFoo is " + params.isFoo
if (params.isFoo) {
// do something
}
```

# Recording Test Results and Artifacts

Expand Down

0 comments on commit bd8d95b

Please sign in to comment.