Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to publish .Net artifact on IIS server

As we are using Bamboo for CI-CD, we have build the artifact using Visual studio agent and the artifact also generated now we want to publish it on IIS server.

Any help on this.

4 answers

Hi all..

My solution for this was to create a publishing profile in my visual studio project/website. 

Then, in bamboo I created a build-plan that creates a shared artifact, that can be consumed in a deployment project. 

The trick with the deployment-project it seems is to specify Visual Studio version in parameters also. 

So, in the deployment-project MSBuild-task I point to the .csproj file for the web-project in the shared artifact and set up parameters like this (under options);

/p:Configuration=Release /p:DeployOnBuild=True /p:PublishProfile="nameofpublishingprofile"  /p:ProfileTransformWebConfigEnabled=False /p:Password="ftppassword" /p:AllowUntrustedCertificate=true /p:UserName=ftpusername /p:VisualStudioVersion=14.0

Without specifying visualstudioversion it seems to choke on targets. 

I'm not sure if you need to specify username and password if it is allready set up in the publishingprofile, but the above parameters seems to make it work. 

Also; If there are files included in the solution that is not committed or ignored in bitbucket, the deployment will fail, since it cannot copy the file.

Hope you make it work :) 

Hello, the artifact you are building is a deployment package @link?  If it is you are in the right way because the next step is configure a new task in your deployment environment and execute a script for call msdeploy. There is a link for the details and requiriments for achieve this @link.

Thanks for Your response.

but i am looking for using bamboo like MSDeploy task is there in Bamaboo using this how can i achieve this. 

Any luck on this? I am creating articfact through a build in bamboo and all is well.. I have a deployment project set up in bamboo as well that consumes this package and deploys it with msbuild, using a publishingprofile in the artifacty/project. 

However, the artifact contains a visual studio project with the complete website, including views, css etc.. The deployment-project just seems to deploy the .bin files and nothing else.. It completely ignores the changes to views and doesn't deploy those. What am I missing? 

0 votes
Omar Herrera Community Leader May 01, 2018

Hi @Niels Lynggaard you can post the the command that your are using for deploy the web package.

There is a similar question @link

Cheers.

 

Omar H.

Did you find any solution? If so, could you share it with me?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

190 views 4 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you