Solved

Configure SharePoint references in deployment configuration file using PowerShell

  • 2 December 2019
  • 5 replies
  • 3 views

Hi, I looking for a automated way to deploy K2 Five package. Is there possible I configure the SharePoint artifacts with PowerShell? e.g. configure SharePoint reference to select the site library. 

Regards,

Eric

icon

Best answer by Sunrise 7 January 2020, 06:35

View original

5 replies

Badge +9

Hi EricLee


 


Go through this Kb article: https://help.k2.com/kbs100174


 


https://help.k2.com/onlinehelp/k2five/userguide/5.0/default.htm#PackageAndDeploy/Powershell-Automated-Deployment.html


 


Regards


Elvis

Good day EricLee,


 


You can use the PowerShell snap-in to automate the deployment of package files (*.kspx) to target environments. This may be especially useful where it is necessary to make regular or frequent package deployments, or where script-based installations and updates are preferred.
*The PowerShell snap-in functionality cannot be used to create packages, but only to deploy ones you create using K2 Package and Deployment.


Please refer the help guide below for more information:
http://help.k2.com/onlinehelp/k2five/userguide/5.1/default.htm#packageanddeploy/powershell-automated-deployment.html


 


Please see the following links as well for additional information:


https://community.k2.com/t5/K2-Blog/K2-Package-and-Deployment-Deploy-with-PowerShell/ba-p/111625


 


Kind regards,


Dumisani

Good day EricLee


 


Please note that you cannot deploy packages containing SharePoint artifacts with the Powershell snap-in, you must use K2 Package and Deployment.


See the following.


Deploy K2 Packages Using PowerShell: https://help.k2.com/onlinehelp/k2five/userguide/5.3/default.htm#PackageAndDeploy/Powershell-Automated-Deployment.html, https://help.k2.com/onlinehelp/k2blackpearl/userguide/4.7/default.htm#PackageAndDeploy/Powershell_Automated_Deployment.html.


 


Best,


Sunrise  

Hi  @Sunrise, 

 

Noted that we cannot deploy packages containing SharePoint artifacts with the Powershell snap-in, is there other ways that we can automate the package deployment that containing SharePoint artifacts?

Also, can Powershell automate the steps of create package? 

Thank you,

Eric

Hi Eric


 


Please see answes your questions below.


Is there other ways that we can automate the package deployment that containing SharePoint artifacts? No. Deploy K2 Packages Using PowerShell: https://help.k2.com/onlinehelp/k2five/userguide/5.3/default.htm#PackageAndDeploy/Powershell-Automated-Deployment.html.


The following were read from the guide above:



  1. You cannot deploy packages containing SharePoint artifacts with the Powershell snap-in, you must use K2 Package and Deployment.


Also, can PowerShell automate the steps of create package? No. Cannot automate Package and Deployment: https://help.k2.com/kbs100174.


The following were read from the guide above:



  1. Package creation can only be done through the K2 Package and Deployment interface.

  2. We also have a feature request submitted in ideas.k2.com to automate K2 Package and Deployment. Please vote for the following idea to increase the likelihood of implementing this feature in a future update of K2:


https://ideas.k2.com/ideas/APIT-I-224.


 


Best,


Sunrise

Reply