File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,24 @@ function removePrevArchive(branch) {
211211 return spawnStep ( 'rm' , [ '-rf' , dir ] , paths . root ) ;
212212}
213213
214+ function convertToCommit ( branch ) {
215+ switch ( branch ) {
216+ case '5.6' :
217+ case '6.8' :
218+ case '7.0' :
219+ case '7.1' :
220+ case '7.2' :
221+ case '7.3' :
222+ return branch ;
223+ case '7.4' :
224+ return 'c31cddf27e9618582b3cd175e4e0bce320af6a14^1' ;
225+ case '7.x' :
226+ return 'c31cddf27e9618582b3cd175e4e0bce320af6a14^1' ;
227+ case 'master' :
228+ return '91663116221052b9aa05cc183d80c1e546073371^1' ;
229+ }
230+ }
231+
214232function createArchive ( branch ) {
215233 return function ( done ) {
216234 var dir = paths . getArchiveDir ( branch ) ;
@@ -234,7 +252,7 @@ function createArchive(branch) {
234252 'tar' ,
235253 '--output' ,
236254 tarball ,
237- branch ,
255+ convertToCommit ( branch ) ,
238256 specPathInRepo ,
239257 ] ,
240258 paths . esSrc
You can’t perform that action at this time.
0 commit comments