PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, September 26, 2022

[FIXED] What is an artifact, and how do I separate my projects?

 September 26, 2022     azure-devops, continuous-deployment, continuous-integration     No comments   

Issue

Just got started with CI/CD with VSTS. And the thing is that I have one project that has several projects. I've got a web site, I've got an API and I got an Azure Functions project.

VSTS build setup takes the commit and builds it. The GIT project is the whole solution (with all the project).

How do I go about separating the individual projects at deployment, since each project has its own destination in Azure. Do I some way produce several artifacts? Do I do something with the artifact?

The build step is "build ***.sln". Do I change it to build the csproj and that way get several artifacts?


Solution

Artifacts are the files produced by build as output of the build.

You can build as a single solution and don't have to build each individual project separately, even though it is possible for you to do that. For your question about creating multiple build artifacts, yes it is possible to do so.

You can use multiple "Copy Files" tasks to copy the files to a staging directory and publish the individual folders in staging directory as artifacts using multiple publish artifact steps in build. Then in release management you can filter for a given artifact for each agent/deployment group phase.

enter image description here

Refer post here on usage of multiple Publish Artifact steps in a build. Also this post might be useful for you to understand more possibilities. Refer this thread as well.



Answered By - ChamindaC
Answer Checked By - David Goodson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing