Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit c205987

Browse files
author
spalger
committed
pin branches to just before elastic/elasticsearch#42346
1 parent 51255d0 commit c205987

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

scripts/generate/index.js

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
214232
function 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

0 commit comments

Comments
 (0)