2 name: 'openstack-bifrost-cleanup'
3 #--------------------------------
5 #--------------------------------
10 #--------------------------------
12 #--------------------------------
15 project-repo: 'https://git.openstack.org/openstack/bifrost'
16 clone-location: '/opt/bifrost'
18 project-repo: 'https://gerrit.opnfv.org/gerrit/releng'
19 clone-location: '/opt/releng'
21 #--------------------------------
23 #--------------------------------
25 - '{project}-bifrost-cleanup-{stream}'
28 name: '{project}-bifrost-cleanup-{stream}'
32 node: bifrost-verify-virtual
34 # Make sure no verify job is running on any of the slaves since that would
35 # produce build logs after we wipe the destination directory.
39 - '{project}-bifrost-verify-*'
52 # DO NOT change this unless you know what you are doing.
53 BIFROST_GS_URL='gs://artifacts.opnfv.org/cross-community-ci/openstack/bifrost/$GERRIT_NAME/$GERRIT_CHANGE_NUMBER/'
55 # This should never happen... even 'recheck' uses the last jobs'
56 # gerrit information. Better exit with error so we can investigate
57 [[ ! -n $GERRIT_NAME ]] || [[ ! -n $GERRIT_CHANGE_NUMBER ]] && exit 1
59 echo "Removing build artifacts for $GERRIT_NAME/$GERRIT_CHANGE_NUMBER"
61 if ! [[ "$BIFROST_GS_URL" =~ "/cross-community-ci/openstack/bifrost/" ]]; then
62 echo "Oops! BIFROST_GS_URL=$BIFROST_GS_URL does not seem like a valid"
63 echo "bifrost location on the Google storage server. Please double-check"
64 echo "that it's set properly or fix this line if necessary."
65 echo "gsutil will not be executed until this is fixed!"
68 # No force (-f). We always verify upstream jobs so if there are no logs
69 # something else went wrong and we need to break immediately and investigate
70 gsutil rm -r $BIFROST_GS_URL
73 - '{project}-gerrit-trigger-cleanup':
78 recipients: fatih.degirmenci@ericsson.com yroblamo@redhat.com mchandras@suse.de jack.morgan@intel.com zhang.jun3g@zte.com.cn
79 #--------------------------------
81 #--------------------------------
83 name: 'openstack-gerrit-trigger-cleanup'
86 server-name: 'review.openstack.org'
89 - patchset-created-event:
90 exclude-drafts: 'false'
91 exclude-trivial-rebase: 'false'
92 exclude-no-code-change: 'false'
93 - patchset-uploaded-event: 'false'
94 # We only run this when the change is merged since
95 # we don't need the logs anymore
96 - change-merged-event: 'true'
97 - change-restored-event: 'false'
98 - draft-published-event: 'false'
99 # We need this in order to be able to trigger a cleanup
100 # from Gerrit should it be necessary
101 - comment-added-contains-event:
102 comment-contains-value: 'recheck'
103 # This is an OPNFV maintenance job. We don't want to provide
108 - project-compare-type: 'PLAIN'
109 project-pattern: 'openstack/bifrost'
111 - branch-compare-type: 'ANT'
112 branch-pattern: '**/{branch}'
113 forbidden-file-paths:
117 pattern: 'releasenotes/**'
118 readable-message: true
120 name: 'opnfv-gerrit-trigger-cleanup'
123 server-name: 'gerrit.opnfv.org'
125 - patchset-created-event:
126 exclude-drafts: 'false'
127 exclude-trivial-rebase: 'false'
128 exclude-no-code-change: 'false'
129 - patchset-uploaded-event: 'false'
130 # We only run this when the change is merged since
131 # we don't need the logs anymore
132 - change-merged-event: 'true'
133 - change-restored-event: 'false'
134 - draft-published-event: 'false'
135 # We need this in order to be able to trigger a cleanup
136 # from Gerrit should it be necessary
137 - comment-added-contains-event:
138 comment-contains-value: 'recheck'
139 - comment-added-contains-event:
140 comment-contains-value: 'reverify'
141 # This is an OPNFV maintenance job. We don't want to provide
146 - project-compare-type: 'ANT'
147 project-pattern: 'releng'
149 - branch-compare-type: 'ANT'
150 branch-pattern: '**/{branch}'
153 pattern: 'prototypes/bifrost/**'
155 pattern: 'jjb/infra/**'
156 readable-message: true