![]() Warning, I do not consider myself as a PowerShell expert, I am more of a kind of PowerShell hacker, so take this script with all precautions. One gotcha from DropBox REST API upload documentation which hit me was how to upload to a business account? In fact, it is really easy, you just need to create an application for your business account with permission full! The script is getting one environment variable DropBoxAccessToken, which represents the DropBox access token because I don’t want to see the access token logged into our TeamCity logs. Importantly, this module doesnt give you the ability to manage the features of Exchange Online, Skype for Business, SharePoint/OneDrive etc. So I decided that I could write a little PowerShell script to achieve that upload to DropBox. I could have gone to write my own add-in but I found the PowerShell one, great! I searched for that kind of capabilities in Cake reference documentation but couldn’t find anything out of the box. When I migrated our build to Cake (C# Make) we had one requirement which was to upload some of the build output’s artifacts to DropBox at the end of the build.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |