@@ -115,20 +115,6 @@ jobs:
115115
116116 shell : bash
117117
118- - name : Create Jira ticket on nightly build failure
119- if : |
120- needs.get-environment.outputs.is_nightly == 'true' && github.run_attempt == 1 &&
121- failure() &&
122- startsWith(github.ref_name, 'dev')
123- uses : ./.github/actions/create-jira-ticket
124- with :
125- jira_base_url : ${{ secrets.JIRA_BASE_URL }}
126- jira_user_email : ${{ secrets.XRAY_JIRA_USER_EMAIL }}
127- jira_api_token : ${{ secrets.XRAY_JIRA_TOKEN }}
128- module_name : " monitoring-plugins"
129- ticket_labels : ' ["Nightly", "Pipeline", "nightly-${{ github.ref_name }}", "${{ github.job }}"]'
130- ticket_squad : " DevSecOps"
131-
132118 unit-tests :
133119 needs : [get-environment, get-plugins]
134120 if : |
@@ -188,20 +174,6 @@ jobs:
188174 path : ./lastlog.jsonl
189175 retention-days : 1
190176
191- - name : Create Jira ticket on nightly build failure
192- if : |
193- needs.get-environment.outputs.is_nightly == 'true' && github.run_attempt == 1 &&
194- failure() &&
195- startsWith(github.ref_name, 'dev')
196- uses : ./.github/actions/create-jira-ticket
197- with :
198- jira_base_url : ${{ secrets.JIRA_BASE_URL }}
199- jira_user_email : ${{ secrets.XRAY_JIRA_USER_EMAIL }}
200- jira_api_token : ${{ secrets.XRAY_JIRA_TOKEN }}
201- module_name : " monitoring-plugins"
202- ticket_labels : ' ["Nightly", "Pipeline", "nightly-${{ github.ref_name }}", "${{ github.job }}"]'
203- ticket_squad : " Connectors"
204-
205177 fatpacker :
206178 needs : [get-environment, get-plugins, unit-tests]
207179 if : |
@@ -361,20 +333,6 @@ jobs:
361333 rpm_gpg_signing_passphrase : ${{ secrets.RPM_GPG_SIGNING_PASSPHRASE }}
362334 stability : ${{ needs.get-environment.outputs.stability }}
363335
364- - name : Create Jira ticket on nightly build failure
365- if : |
366- needs.get-environment.outputs.is_nightly == 'true' && github.run_attempt == 1 &&
367- failure() &&
368- startsWith(github.ref_name, 'dev')
369- uses : ./.github/actions/create-jira-ticket
370- with :
371- jira_base_url : ${{ secrets.JIRA_BASE_URL }}
372- jira_user_email : ${{ secrets.XRAY_JIRA_USER_EMAIL }}
373- jira_api_token : ${{ secrets.XRAY_JIRA_TOKEN }}
374- module_name : " monitoring-plugins"
375- ticket_labels : ' ["Nightly", "Pipeline", "nightly-${{ github.ref_name }}", "${{ github.job }}"]'
376- ticket_squad : " DevSecOps"
377-
378336 test-plugins :
379337 needs : [get-environment, get-plugins, package]
380338 if : |
@@ -438,20 +396,6 @@ jobs:
438396 path : /var/log/robot-plugins-installation-tests.log
439397 retention-days : 1
440398
441- - name : Create Jira ticket on nightly build failure
442- if : |
443- needs.get-environment.outputs.is_nightly == 'true' && github.run_attempt == 1 &&
444- failure() &&
445- startsWith(github.ref_name, 'dev')
446- uses : ./.github/actions/create-jira-ticket
447- with :
448- jira_base_url : ${{ secrets.JIRA_BASE_URL }}
449- jira_user_email : ${{ secrets.XRAY_JIRA_USER_EMAIL }}
450- jira_api_token : ${{ secrets.XRAY_JIRA_TOKEN }}
451- module_name : " monitoring-plugins"
452- ticket_labels : ' ["Nightly", "Pipeline", "nightly-${{ github.ref_name }}", "${{ github.job }}"]'
453- ticket_squad : " Connectors"
454-
455399 deliver-packages :
456400 needs : [get-environment, get-plugins, test-plugins]
457401 if : |
@@ -496,20 +440,6 @@ jobs:
496440 release_type : ${{ needs.get-environment.outputs.release_type }}
497441 artifactory_token : ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
498442
499- - name : Create Jira ticket on nightly build failure
500- if : |
501- needs.get-environment.outputs.is_nightly == 'true' && github.run_attempt == 1 &&
502- failure() &&
503- startsWith(github.ref_name, 'dev')
504- uses : ./.github/actions/create-jira-ticket
505- with :
506- jira_base_url : ${{ secrets.JIRA_BASE_URL }}
507- jira_user_email : ${{ secrets.XRAY_JIRA_USER_EMAIL }}
508- jira_api_token : ${{ secrets.XRAY_JIRA_TOKEN }}
509- module_name : " monitoring-plugins"
510- ticket_labels : ' ["Nightly", "Pipeline", "nightly-${{ github.ref_name }}", "${{ github.job }}"]'
511- ticket_squad : " DevSecOps"
512-
513443 deliver-sources :
514444 needs : [get-environment, fatpacker]
515445 if : |
@@ -571,3 +501,25 @@ jobs:
571501 ! contains(needs.*.result, 'failure') &&
572502 ! contains(needs.*.result, 'cancelled')
573503 uses : ./.github/workflows/set-pull-request-skip-label.yml
504+
505+ create-jira-nightly-ticket :
506+ runs-on : ubuntu-24.04
507+ needs : [
508+ get-environment,
509+ deliver-packages
510+ ]
511+ if : |
512+ needs.get-environment.outputs.is_nightly == 'true' && github.run_attempt == 1 &&
513+ (failure() || cancelled() || contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled'))
514+ steps :
515+ - name : Checkout sources
516+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
517+
518+ - name : Create Jira ticket based on nightly build failure
519+ uses : ./.github/actions/create-jira-ticket
520+ with :
521+ jira_base_url : ${{ secrets.JIRA_BASE_URL }}
522+ jira_user_email : ${{ secrets.XRAY_JIRA_USER_EMAIL }}
523+ jira_api_token : ${{ secrets.XRAY_JIRA_TOKEN }}
524+ module_name : " centreon-plugins"
525+ ticket_reason_for_creation : " Nightly"
0 commit comments