1 ###################################################
2 # Non-ci jobs for Bottlenecks project
3 # They will only be enabled on request by projects!
4 ###################################################
6 name: bottlenecks-project-jobs
11 - 'bottlenecks-verify-{stream}'
12 - 'bottlenecks-merge-{stream}'
13 - 'bottlenecks-{suite}-upload-artifacts-{stream}'
18 #This is used for common project file storage
20 #This is used for different test suite dependent packages storage
21 gs-packagepath: '/{suite}'
23 branch: 'stable/{stream}'
24 gs-pathname: '/{stream}'
25 gs-packagepath: '/{stream}/{suite}'
31 ################################
33 ################################
36 name: 'bottlenecks-verify-{stream}'
43 - 'opnfv-build-ubuntu-defaults'
47 credentials-id: '{ssh-credentials}'
48 refspec: '$GERRIT_REFSPEC'
49 choosing-strategy: 'gerrit'
54 - patchset-created-event:
55 exclude-drafts: 'false'
56 exclude-trivial-rebase: 'false'
57 exclude-no-code-change: 'false'
58 - draft-published-event
59 - comment-added-contains-event:
60 comment-contains-value: 'recheck'
61 - comment-added-contains-event:
62 comment-contains-value: 'reverify'
64 - project-compare-type: 'ANT'
65 project-pattern: '{project}'
67 - branch-compare-type: 'ANT'
68 branch-pattern: '**/{branch}'
71 echo "bottlenecks: verify job"
72 #TO DO: this should be changed when the unittest ready
75 name: 'bottlenecks-merge-{stream}'
82 - 'opnfv-build-ubuntu-defaults'
86 credentials-id: '{ssh-credentials}'
88 choosing-strategy: 'default'
94 - comment-added-contains-event:
95 comment-contains-value: 'remerge'
97 - project-compare-type: 'ANT'
98 project-pattern: '{project}'
100 - branch-compare-type: 'ANT'
101 branch-pattern: '**/{branch}'
105 echo "bottlenecks: merge"
108 name: 'bottlenecks-{suite}-upload-artifacts-{stream}'
122 - 'opnfv-build-ubuntu-defaults'
123 - bottlenecks-parameter:
124 gs-packagepath: '{gs-packagepath}'
128 credentials-id: '{ssh-credentials}'
133 - 'bottlenecks-builder-upload-artifact'
134 - 'bottlenecks-workspace-cleanup'
140 name: bottlenecks-parameter
144 default: $WORKSPACE/cache{gs-packagepath}
145 description: "the cache to store packages downloaded from public IP"
148 default: gs://artifacts.opnfv.org/bottlenecks{gs-packagepath}
149 description: "LF artifacts url for storage of bottlenecks packages"
152 default: http://205.177.226.237:9999/bottlenecks{gs-packagepath}/
153 description: "the url where we store the packages used for bottlenecks rubbos"
155 ####################################
156 #builders for bottlenecks project
157 ####################################
159 name: bottlenecks-builder-upload-artifact
165 echo "Bottlenecks: upload to artifacts from the public IP"
167 [[ -d $CACHE_DIR ]] || mkdir -p $CACHE_DIR
169 for file in $(curl -s $PACKAGE_URL |
173 grep '^[a-zA-Z].*'); do
174 curl --connect-timeout 10 -o $CACHE_DIR/$file $PACKAGE_URL$file -v
175 echo "bottlenecks: copy file $CACHE_DIR/$file to $SUITE_URL"
176 gsutil cp $CACHE_DIR/$file $SUITE_URL
180 name: bottlenecks-workspace-cleanup
186 echo "Bottlenecks: cleanup cache used for storage downloaded packages"
188 /bin/rm -rf $CACHE_DIR