#5349 Update pagure CI guide
Merged a year ago by ngompa. Opened a year ago by zlopez.
zlopez/pagure ci_docs  into  master

@@ -122,9 +122,9 @@ 

  

      # Part of the script specific to how you run the tests on your project

  

- * To use the URL to POST results you need to add API key to Jenkins instance.

-   This API key needs to have `Update an issue, status, comments, custom fields...`

-   ACL. In Jenkins add it in `Manage Jenkins` -> `Manage Credentials` -> `Stores scoped to Jenkins`

+ * To use the URL to POST results you need to add CI token to Jenkins instance.

+   This token could be found in Pagure project `Settings` -> `Hooks` -> `Pagure CI`.

+   In Jenkins add it in `Manage Jenkins` -> `Manage Credentials` -> `Stores scoped to Jenkins`

    -> `Jenkins` -> `Global credentials (unrestricted)` -> `Add Credentials` as kind

    `Secret text` (ID will be used in script).

  

I noticed that the notification from post build is not sent to PR and after some
investigation I found out that the credentials need to contain CI token instead
of API key. Unfortunately you can't look at the secret text in Jenkins
configuration, so it took some time till I was able to figure this out.

Signed-off-by: Michal Konečný mkonecny@redhat.com

Pull-Request has been merged by ngompa

a year ago
Metadata