I found that this issue was already logged and included a possible partial workaround.
https://issues.jenkins-ci.org/browse/JENKINS-35180 I attempted the workaround and updated file (\blueocean-plugin\js-extensions@jenkins-cd\subs\extensions-bundle.js) var relPath = path.relative(targetRoot, srcRoot); to var relPath = path.relative(targetRoot, srcRoot).split("\\").join("\\\\"); Now I am receiving a new error message: [INFO] [11:35:23] error: Error: Cannot find module '..srcmainjs/PipelineRoutes.jsx' from 'D:\GIT\blueocean-plugin\blueocean-dashboard\target' Here is a 2 minute video of my repo steps. https://www.youtube.com/watch?v=AkhTkTvuETQ?version=3&vq=hd1080 I am still unable to build successfully on windows. Thanks for the help on getting this issue resolved. On Thursday, June 2, 2016 at 5:43:59 PM UTC-4, Thorsten Scherler wrote: > > > import component_0 from '..\src\main\js/AdminNavLink.jsx'; > > yeah @tom your fix should work > > salu2 > > On Thursday, June 2, 2016 at 7:54:12 PM UTC+2, Tom Fennelly wrote: >> >> Specifically we're talking about relPath >> <https://github.com/jenkinsci/blueocean-plugin/blob/master/js-extensions/%40jenkins-cd/subs/extensions-bundle.js#L120> >> >> and making sure it always contains unix file path token separators. >> >> On 2 June 2016 at 18:51, Tom Fennelly <[email protected]> wrote: >> >>> Hey Ian. Thanks for the video. >>> >>> After running the build, please get the contents of >>> ./blueocean-dashboard/target/jenkins-js-extension.jsx and attach it back >>> here. >>> >>> Looks like we need a fix we need a fix in >>> js-extensions/@jenkins-cd/subs/extensions-bundle.js#L120 to stop it >>> translating the paths to the system format. It's an easy fix. >>> >>> On 2 June 2016 at 17:51, Ian Ceicys <[email protected]> wrote: >>> >>>> I too am running into the 'Cannot find module '..srcmainjs/AdminNavLi >>>> nk.jsx' issue when running the following command (mvn clean install) on >>>> Windows Server 2012 R2. >>>> >>>> I have verified that I am running Python 2.7.3 ( >>>> https://www.python.org/ftp/python/2.7.3/python-2.7.3.msi) as there >>>> appears to be an issue running Python 3.5.1. >>>> >>>> *3 min Video of the Repo Steps:* >>>> https://www.youtube.com/watch?v=zetNEjLYX2Q?version=3&vq=hd1080 >>>> >>>> Error Message: >>>> [INFO] [12:27:17] Finished 'less_bundle_extensions_bundle_4' after 5.74 >>>> ms >>>> [INFO] [12:27:18] LESS CSS pre-processing completed to >>>> 'target/classes/org/jenki >>>> ns/ui/jsmodules/blueocean_dashboard'. >>>> [INFO] [12:27:20] Browserify bundle processing error >>>> [INFO] [12:27:20] error: Error: Cannot find module >>>> '..srcmainjs/AdminNavLi >>>> nk.jsx' from 'D:\GIT\blueocean-plugin\blueocean-dashboard\target' >>>> [ERROR] >>>> [ERROR] >>>> D:\GIT\blueocean-plugin\blueocean-dashboard\node_modules\@jenkins-cd\js- >>>> builder\index.js:555 >>>> [ERROR] throw 'Browserify bundle processing >>>> error. See a >>>> bove for details.'; >>>> [ERROR] ^ >>>> [ERROR] Browserify bundle processing error. See above for details. >>>> >>>> >>>> >>>> On Tuesday, May 31, 2016 at 7:29:23 PM UTC-4, Michael Neale wrote: >>>>> >>>>> *shakes fist at bill gates*. I think "\" was picked as a path >>>>> separator deliberately to be different in the 70s when DOS was invented. >>>>> >>>>> This really shoudl build on windows, but may take some time. Some of >>>>> the tests are also creating and executing pipelines that involve "sh" >>>>> steps >>>>> which may be a problem once this build issue is overcome. They can >>>>> probably >>>>> be amended to use echo steps - which are cross platform I believe. >>>>> >>>>> So, work to be done.. >>>>> >>>>> On Wednesday, June 1, 2016 at 9:22:42 AM UTC+10, Thorsten Scherler >>>>> wrote: >>>>>> >>>>>> Yeah I am with Tom, one / is getting "eaten" >>>>>> >>>>>> .srcmainjs/AdminNavLink.jsx' from >>>>>> 'C:\Users\Admin\Downloads\blueocean\blueocean-dashboard\target' >>>>>> >>>>>> the whole path until the last is missing it. That is coming from >>>>>> bo-web assembling the extensions points. >>>>>> >>>>>> BTW that file should be called DashboardNavLink. ;) >>>>>> >>>>>> salu2 >>>>>> >>>>>> On Tuesday, May 31, 2016 at 10:26:33 PM UTC+2, Tom Fennelly wrote: >>>>>>> >>>>>>> On Tuesday, 31 May 2016 06:04:44 UTC+1, Richard Bywater wrote: >>>>>>>> >>>>>>>> I assume the cause of the issue is: >>>>>>>> "Cannot find module '..srcmainjs/AdminNavLink.jsx" >>>>>>>> >>>>>>>> It looks like something is trying to write a string probably >>>>>>>> started as "..\src\main\js/AdminNavLink.jsx" and its entered something >>>>>>>> like >>>>>>>> Java which has seen those backslashes as escape characters (and hence >>>>>>>> ended >>>>>>>> up as srcmainjs) >>>>>>>> >>>>>>>> Haven't looked at *any* of the code but hopefully that might point >>>>>>>> someone in a useful direction. >>>>>>>> >>>>>>>> Richard. >>>>>>>> >>>>>>> >>>>>>> I'd need to check, but I doubt this error has anything to do with >>>>>>> the symlink. >>>>>>> >>>>>> -- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "Jenkins Developers" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/jenkinsci-dev/otY1UkS9f4w/unsubscribe >>>> . >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/jenkinsci-dev/d495fecf-749b-409c-b9a5-efac078ec31b%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/jenkinsci-dev/d495fecf-749b-409c-b9a5-efac078ec31b%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >> -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/cdf27cd0-4e0e-481b-978d-fa95118b448d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
