Module publishing process.

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
falconwmua
Posts: 2
Joined: Tue May 20, 2014 7:26 am

Module publishing process.

Post by falconwmua »

Does anyone have a good process or workflow for getting a module from source control to update to published module via PowerShellGet to changes checked into back into source control. Here is my process so far:
  • Get latest from source control in PSS
    Make changes and test
    Deploy to Temp folder in PSS
    Run Publish-Module cmdlet against temp folder
    If publish succeeds, check-in changes to source control
I'm not looking for feature changes at this time just so see if someone has a better way to do this because I'm about to have to expand the development of these module beyond myself on my team.

User avatar
SAPIEN Support Forums
Posts: 945
Joined: Wed Dec 03, 2014 2:26 pm

Module publishing process.

Post by SAPIEN Support Forums »

This is an automated post. A real person will respond soon.

Thank you for posting, falconwmua.

Here are some hints to help you get an accurate and complete answer to your question.

Ask in the best forum: If you asked in the wrong forum, just copy your question to the right forum.

Anticipate follow-up questions!

Did you remember to include the following?
  • 1. Product, version and build
    2. 32 or 64 bit product
    3. Operating system, e.g. Windows 7 64 bit.
    4. Attach a screenshot, if applicable
    5. Attach logs, crash reports, etc., in a ZIP file
If not, please take a moment to edit your original post or reply to this one.

*** Make sure you do not post any licensing information ***

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Re: Module publishing process.

Post by davidc »

You can add custom commands to the deploy state:

https://www.sapien.com/blog/2014/04/14/ ... 14-part-3/

Using the additional build commands, you can call PowerShell.exe and pass the command to publish.
Additional Deployment Commands.png
Additional Deployment Commands.png (29.64 KiB) Viewed 2858 times
Part 4 links to all the previous articles on deployment:

https://www.sapien.com/blog/2014/04/21/ ... 14-part-4/


Alternatively, you can use PowerShell Studio's custom menu:

https://www.sapien.com/blog/2013/01/08/ ... ial-oh-my/

https://www.sapien.com/blog/2015/10/01/ ... -template/

David
David
SAPIEN Technologies, Inc.

jvierra
Posts: 14587
Joined: Tue May 22, 2007 9:57 am
Answers: 2
Been upvoted: 1 time
Contact:

Re: Module publishing process.

Post by jvierra »

Just a note. The workflow for versioning is nearly always contained in the repository. The authentication is direct by account and the repository software usually posts a challenge for documentation updates if they are not included in source headers.

I would first check with the VCS manager to learn how to best integrate with your VCS. TFS can be extended now with PosH scripts so it can be more tightly integrated.

Locked