File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
dev/preview/workflow/preview Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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
1318function 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 }
You can’t perform that action at this time.
0 commit comments