Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Build ASP.NET and deploy to IIS

Hello.

I am building an ASP.NET web site using command line, with Visual Studio msbuild, like this:

/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true;PackageLocation=${bamboo.build.working.directory}

It works ok (it creates a deploy.cmd and a zip file in my build working directory).

 

In my deploy task, I also used command line and define my task like this:

msdeploy -verb:sync -source:package="ASPSample.zip" -dest:auto -setParam:kind=ProviderPath,scope=contentPath,value="Default Web Site"

In here something is going on because my Deploy keeps going for a while... I think it's some issue about the working directory, because if I use this commands in the command line (by hand) everything is working fine.

So, my question is this: what's the better solution for fixing this? (Making the deploy fetching the same directory where my build is).

 

Thanks.

 

1 answer

1 accepted

1 vote
Answer accepted
Omar Herrera Community Leader Jul 03, 2018

Hi @Fr0zt if you are using deploy task on a Deployment proyect the firt step is download the artifact second one the path for "ASPSample.zip" must be absolut path you must combine the working directory + ASPSample.zip.

Cheers.

Yes thanks.

I don't know why but I just remaked the build and the deploy and it works ok now.

Thanks

Suggest an answer

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

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

943 views 4 7
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