Skip to content

Commit 1221cd9

Browse files
committed
Update patch for rr and cl
1 parent 2a25b3d commit 1221cd9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

dev/preview/workflow/preview/patch-ide-configmap.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@ function replaceImage(image) {
99
return image.replace("gitpod-dev-artifact", "gitpod-core-dev");
1010
}
1111

12+
const imagesBuildFromMain = [
13+
"jb-backend-plugin:commit-2d67254d5aa110bc2c76cd807b85b272e3d54d97-latest",
14+
"jb-backend-plugin:commit-4c69ad0670cc4cfbf43910e1db700ad90acd5ac6",
15+
];
16+
1217
// TODO(hw): remove me
1318
function replaceImage2(image) {
14-
if (image.includes("jb-backend-plugin:commit-2d67254d5aa110bc2c76cd807b85b272e3d54d97-latest")) {
15-
return image.replace("gitpod-dev-artifact", "gitpod-core-dev");
19+
for (const imgFromMain of imagesBuildFromMain) {
20+
if (image.includes(imgFromMain)) {
21+
return image.replace("gitpod-dev-artifact", "gitpod-core-dev");
22+
}
1623
}
1724
return image;
1825
}
@@ -31,7 +38,7 @@ for (let ide in json.ideOptions.options) {
3138
}
3239

3340
// TODO(hw): remove me
34-
if (["intellij"].includes(ide)) {
41+
if (["intellij", "clion", "rustrover"].includes(ide)) {
3542
json.ideOptions.options[ide].pluginImage = replaceImage2(json.ideOptions.options[ide].pluginImage);
3643
json.ideOptions.options[ide].imageLayers = json.ideOptions.options[ide].imageLayers.map(replaceImage2);
3744
}

0 commit comments

Comments
 (0)