Skip to content

Commit

Permalink
[APM-CI] document the checkout process (#22)
Browse files Browse the repository at this point in the history
* [APM-CI] documment the checkout process

* update README
  • Loading branch information
kuisathaverat authored Jan 3, 2019
1 parent d26f9ed commit 8f6aec1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion vars/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ def jsonValue = getVaultSecret('secret-name')
Perform a checkout from the SCM configuration on a folder inside the workspace,
if branch, repo, and credentialsId are defined make a checkout using those parameters.

For security reasons PRs from not Elastic organization or with write permissions
on the repo are block at this point see [githubPrCheckApproved](#githubPrCheckApproved),
whoever if you login in the Jenkins UI, it would be always possible to trigger
the job manually from the Jenkins UI.

```
gitCheckout()
```
Expand Down Expand Up @@ -150,7 +155,7 @@ githubEnv()
## githubPrCheckApproved
If the current build is a PR, it would check if it is approved or created
by a user with write/admin permission on the repo.
If it is not approbed, the method will throw an error.
If it is not approved, the method will throw an error.

```
githubPrCheckApproved()
Expand Down
5 changes: 5 additions & 0 deletions vars/gitCheckout.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Perform a checkout from the SCM configuration on a folder inside the workspace,
if branch, repo, and credentialsId are defined make a checkout using those parameters.

For security reasons PRs from not Elastic organization or with write permissions
on the repo are block at this point see [githubPrCheckApproved](#githubPrCheckApproved),
whoever if you login in the Jenkins UI, it would be always possible to trigger
the job manually from the Jenkins UI.

```
gitCheckout()
```
Expand Down
2 changes: 1 addition & 1 deletion vars/githubPrCheckApproved.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
If the current build is a PR, it would check if it is approved or created
by a user with write/admin permission on the repo.
If it is not approbed, the method will throw an error.
If it is not approved, the method will throw an error.
githubPrCheckApproved()
*/
Expand Down
2 changes: 1 addition & 1 deletion vars/githubPrCheckApproved.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
If the current build is a PR, it would check if it is approved or created
by a user with write/admin permission on the repo.
If it is not approbed, the method will throw an error.
If it is not approved, the method will throw an error.

```
githubPrCheckApproved()
Expand Down

0 comments on commit 8f6aec1

Please sign in to comment.