The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

MSBuild Exec not running in Pipelines

Phil Fitzgerald
March 7, 2019

This is my first time trying to use Pipelines.  I am building a .Net Core application.  I am getting this error from the Pipelines build:

error : Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE.

I see that this error is coming from my .csproj file.  The MSbuild Exec seems to not be working.

<Target Name="DebugRunWebpack" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('wwwroot\dist') ">
<!-- Ensure Node.js is installed -->
<Exec Command="node --version" ContinueOnError="true">
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
</Exec>
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />

Is this a Pipeline issue, or a Docker issue?  Does anyone know how to get around this issue?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Peter Plewa
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 2, 2019

Hi @Phil Fitzgerald

I'd make sure that the image you're using has node installed, if that doesn't help I would need some additional information to help debug your issue.

Could you share your YML and raw Pipeline Log?

Thanks,
Peter

TAGS
AUG Leaders

Atlassian Community Events