eiffel: Add postbuildscript to post comments to PRs
[infra/cicd.git] / jjb / eiffel / global-eiffel-container-build-merge.yaml
index 70596af7ebcb6383b80ed3c07565c3041aa0881a..4831757758afef5dd1ba89a8aa4fb40263bed0b9 100644 (file)
@@ -29,7 +29,9 @@
     properties:
       - logrotate
       - github:
-          url: '$GIT_BASE_HTTPS/{project-git-repo}'
+          # NOTE (fdegir): url is hardcoded here since env vars in job properties
+          # do not seem to be resolved correctly, causing job no to function properly
+          url: 'https://github.com/eiffel-community/{project-git-repo}'
 
     parameters:
       - project-parameters:
           name: GIT_BASE_HTTPS
           default: https://github.com/eiffel-community
           description: HTTPS URL of Project Repo on GitHub to clone repo.
-      - string:
-          name: GIT_BASE_SSH
-          default: git@github.com:eiffel-community
-          description: SSH URL of Project Repo on GitHub to clone repo.
       - string:
           name: IMAGE_DOCKERFILE
           default: '{image-dockerfile}'
@@ -78,7 +76,7 @@
 
     scm:
       - git:
-          url: '$GIT_BASE_HTTPS/{project-git-repo}.git'
+          url: 'https://github.com/eiffel-community/{project-git-repo}.git'
           branches:
             - '*/{branch}'
           refspec: ''
       - nordixinfra-harbor-creds-wrapper
       - mask-passwords
       - openstack:
-          single-use: True
+          single-use: true
 
     builders:
       - '{project-build-macro}'
 
+    publishers:
+      - postbuildscript:
+          builders:
+            - role: SLAVE
+              build-on:
+                - SUCCESS
+                - FAILURE
+                - ABORTED
+                - NOT_BUILT
+                - UNSTABLE
+              build-steps:
+                - 'eiffel-global-pr-comment-macro'
+
 # vim: set ts=2 sw=2 expandtab: