GithubHelp home page GithubHelp logo

Comments (8)

spaikles avatar spaikles commented on August 17, 2024

Hi,
Silly question: but does the Lab manage to build in VSTS? Is there a artifact?

from partsunlimited.

eamonnk avatar eamonnk commented on August 17, 2024

Hi,

Yeah, the lab generates build artifacts and then takes those and deploys to azure. I just ran through it though and the build is breaking, there's been a change affecting one of the tasks. Will have an update shortly to fix it, will let you know what that's done.

Thanks for flagging,
Eamonn

from partsunlimited.

andresravinet avatar andresravinet commented on August 17, 2024

Thanks! I ended up getting past it and deploying successfully with the help with a colleague. Let me know how I can help.

from partsunlimited.

spaikles avatar spaikles commented on August 17, 2024

So what's the solution then?

from partsunlimited.

eamonnk avatar eamonnk commented on August 17, 2024

Just FYI as well that am still working through this, the issue seems to be around node and grunt paths and versions on the agent, don't have an end to end working solution yet to roll out but as soon as I have it I'll share it.

The options I'm working on are some changes to the source files and tasks, or potentially creating our own agent, not using provided hosted agent, and being able to more tightly control the build environment.

I'll possibly be another day or so with it, but if there's any other working solutions in the meantime feel free to share.

Thanks,
Eamonn

from partsunlimited.

eamonnk avatar eamonnk commented on August 17, 2024

Hi,

Have updated the PartsUnlimitedWebsite.csproj, with the below. The issue was caused by changes in the hosted agent resulting in errors with versions and paths for grunt and python. The below changes will address those it should now run and generate artifacts.

You will see deprecation and some security warnings and some errors as it builds in VSTS but its fine ot ignore those, they don't affect the result and the source files now run and build successfully, have run through it a couple of times and it seems to be running fine with these updated source files.

Have also updated the buld.ps1 verbosity to detailed to provide more output when running, so it may take a small bit longer to run.

Anyway, grab the latest source files and run it with those and let us know if you have any problems.

Thanks,
Eamonn

from partsunlimited.

eamonnk avatar eamonnk commented on August 17, 2024

just realized the csproj update was commented out, have repasted it below just fyi

<Target Name="PrecompileScript" BeforeTargets="BeforeBuild">
<Exec Command="npm install --python=python2.7" />
<Exec Command="npm config set python python2.7" />
<Exec Command="npm install -g grunt-cli" />
<Exec Command="grunt" />
</Target>

thanks again,
eamonn

from partsunlimited.

JemDobro avatar JemDobro commented on August 17, 2024

I just had this same issue where pushing changes to master was not triggering a CI build.

I believe Task 4 here: http://microsoft.github.io/PartsUnlimited/pandp/200.1x-PandP-CICDQuickstartwithVSTS.html needs to include an instruction (maybe between instruction #8 and #9) to:
Click on the "Triggers" tab and make sure the "Branch specification" dropdown says "master".

I checked this when the CI build was not getting triggered, and it said one of the "update - .net core 2" selections I believe. I changed it to master, pushed a code change to master, and CI build was automatically triggered followed by automatic release deployment....working now as expected.

I hope this helps others!

from partsunlimited.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.