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-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-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}'
121 - 'ericsson-build-defaults'
122 - bottlenecks-parameter:
123 gs-packagepath: '{gs-packagepath}'
127 credentials-id: '{ssh-credentials}'
132 - 'bottlenecks-builder-upload-artifact'
133 - 'bottlenecks-workspace-cleanup'
139 name: bottlenecks-parameter
143 default: $WORKSPACE/cache{gs-packagepath}
144 description: "the cache to store packages downloaded from public IP"
147 default: gs://artifacts.opnfv.org/bottlenecks{gs-packagepath}
148 description: "LF artifacts url for storage of bottlenecks packages"
151 default: http://205.177.226.237:9999/bottlenecks{gs-packagepath}/
152 description: "the url where we store the packages used for bottlenecks rubbos"
154 ####################################
155 #builders for bottlenecks project
156 ####################################
158 name: bottlenecks-builder-upload-artifact
164 echo "Bottlenecks: upload to artifacts from the public IP"
166 [[ -d $CACHE_DIR ]] || mkdir -p $CACHE_DIR
168 for file in $(curl -s $PACKAGE_URL |
172 grep '^[a-zA-Z].*'); do
173 curl --connect-timeout 10 -o $CACHE_DIR/$file $PACKAGE_URL$file -v
174 echo "bottlenecks: copy file $CACHE_DIR/$file to $SUITE_URL"
175 gsutil cp $CACHE_DIR/$file $SUITE_URL
179 name: bottlenecks-workspace-cleanup
185 echo "Bottlenecks: cleanup cache used for storage downloaded packages"
187 /bin/rm -rf $CACHE_DIR