Unable to build Vue js project through Jenkins

244 views
Skip to first unread message

LP

unread,
May 15, 2019, 4:18:05 PM5/15/19
to Jenkins Users
Hi, I am new to Jenkins but have done a few builds/deployment jobs of .net project successfully. Now I am trying to build/deploy  Vue js project through Jenkins but just cannot get through...
I can build the project directly on a server using command prompt. It builds and creates files for deployment in a right directory. 
When I am trying to do it in Jenkins job (using the same npm commands) it does not give any error messages, says it built successfully but it does NOT create any files for deployment. 
Does anybody encounter this problem? Did anybody build Vue js project through Jenkins? Any help appreciated. Thanks!

Jan Monterrubio

unread,
May 18, 2019, 1:19:31 PM5/18/19
to jenkins...@googlegroups.com
Can you use any command on the windows agent? Let’s double check that things are running on it. Try to just echo something. 

Is npm installed? If not you’d get a command not found error when running. 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c3eb0ee9-6aac-4c5d-8d59-9282310b7a80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

LP

unread,
May 28, 2019, 10:06:08 AM5/28/19
to Jenkins Users
Hi Jan,
Sorry for the late response, I was off for a while. Yes, I can run commands on the windows agent. I solved the problem! Apparently I could not run these two commands in one window: npm install and npm run build . When I separated it and run it in two separate 'execute windows batch command' it works. Thanks for the response!


On Saturday, May 18, 2019 at 1:19:31 PM UTC-4, Jan Monterrubio wrote:
Can you use any command on the windows agent? Let’s double check that things are running on it. Try to just echo something. 

Is npm installed? If not you’d get a command not found error when running. 
On Wed, May 15, 2019 at 15:17 LP <luba...@gmail.com> wrote:
Hi, I am new to Jenkins but have done a few builds/deployment jobs of .net project successfully. Now I am trying to build/deploy  Vue js project through Jenkins but just cannot get through...
I can build the project directly on a server using command prompt. It builds and creates files for deployment in a right directory. 
When I am trying to do it in Jenkins job (using the same npm commands) it does not give any error messages, says it built successfully but it does NOT create any files for deployment. 
Does anybody encounter this problem? Did anybody build Vue js project through Jenkins? Any help appreciated. Thanks!

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages