Fix packer verify file path triggering
[releng/global-jjb.git] / jjb / lf-maven-jobs.yaml
index 247aaeb..eaa4ef8 100644 (file)
     mvn-opts: ''
     mvn-params: ''
     mvn-version: mvn33
+    staging-profile-id: ''  # Unused by the javadoc jobs
     stream: master
     submodule-recursive: true
 
     mvn-opts: ''
     mvn-params: ''
     mvn-version: mvn33
+    staging-profile-id: ''  # Unused by the javadoc jobs
     stream: master
     submodule-recursive: true
 
     gerrit_javadoc_verify_triggers:
       - patchset-created-event:
-          exclude-drafts: false
+          exclude-drafts: true
           exclude-trivial-rebase: false
           exclude-no-code-change: false
       - draft-published-event
     # directory can then be reused later to deploy to Nexus.
     #
     # Required parameters:
-    #     build-node:    The node to run build on.
-    #     jenkins-ssh-credential: Credential to use for SSH. (Generally should
-    #                             be configured in defaults.yaml)
-    #     mvn-settings: The name of settings file containing credentials for
-    #                   the project.
-    #     staging-profile-id: Profile ID of the project's Nexus staging profile.
+    #     :build-node: The node to run build on.
+    #     :jenkins-ssh-credential: Credential to use for SSH. (Generally should
+    #                              be configured in defaults.yaml)
+    #     :mvn-settings: The name of settings file containing credentials for
+    #                    the project.
+    #     :mvn-staging-id: Maven Server ID from settings.xml to pull credentials from.
+    #         (Note: This setting should be configured in defaults.yaml.)
+    #     :staging-profile-id: Profile ID of the project's Nexus staging profile.
     #
     # Optional parameters:
     #     :gerrit_verify_triggers: Override Gerrit Triggers.
     #     :mvn-global-settings: The name of the Maven global settings to use for
     #                           Maven configuration. (default: global-settings)
+    #     :cron: Cron schedule when to trigger the job. This parameter also
+    #         supports multiline input via YAML pipe | character in cases where
+    #         one may want to provide more than 1 cron timer. (default: '')
 
     ######################
     # Default parameters #
     mvn-version: mvn33
     stream: master
     submodule-recursive: true
+    cron: ''
 
     gerrit_release_triggers:
       - comment-added-contains-event:
           global-settings-file: '{mvn-global-settings}'
           settings-file: '{mvn-settings}'
       - lf-infra-create-netrc:
-          server-id: opendaylight-staging
+          server-id: '{mvn-staging-id}'
       - shell: !include-raw-escape:
           - ../shell/lftools-install.sh
           - ../shell/common-variables.sh
           choosing-strategy: default
 
     triggers:
+      - timed: '{obj:cron}'
       - gerrit:
           server-name: '{gerrit-server-name}'
           trigger-on: '{obj:gerrit_release_triggers}'
           jenkins-ssh-credential: '{jenkins-ssh-credential}'
 
     triggers:
+      - timed: '{obj:cron}'
       - lf-infra-github-pr-trigger:
           trigger-phrase: '^build release$'
           only-trigger-phrase: true
 
     gerrit_verify_triggers:
       - patchset-created-event:
-          exclude-drafts: false
+          exclude-drafts: true
           exclude-trivial-rebase: false
           exclude-no-code-change: false
       - draft-published-event