Interactive Variables for Release Management

In the assembly definition for VSTS, you can declare a variable and allow it to change during the queue, as in this picture Allow Change

Can I do the same for a variable in the definition of Release?

I now have a definition for Release that has an environment called Sharepoint. In this environment, I have a PowerShell task to upload an assembly artifact zip file to Sharepoint Online. To upload a file using the SharePoint API, I need the credentials of the SharePoint account that I store as a variable for this Sharepoint environment. The problem is that Microsoft requires a password change for the Sharepoint account every 90 days (this is what our IT specialists told us). Therefore, storing my credentials in a variable in the environment is not a good choice if different developers would like to request a release from this version of the definition, and my password has been changed.

Is there a way to get an interactive prompt for SharePoint credentials if the developer wants to request a release?

In addition, since we use Azure Active Directory for Office365, Sharepoint, and VSTS, I wonder if I can extract the credentials from the createdBy field returned by the release API in https://www.visualstudio.com/en-us/docs/integrate/api/rm/releases#for-a-release-definition  and use it as an account for Sharepoint Online.

+4
source share
2 answers

It does not support changing variable values. When a release is requested in VSTS. No interactive variables such as assembly definition.

You can vote for the vote of this user: https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/16616269-change-release-variables-value-when-deploy-a-rele

API REST, , displayName, . , .

+4

, :

  1. "" enter image description here
  2. , enter image description here

.

, .

enter image description here

. , . . , .

0

Source: https://habr.com/ru/post/1657425/


All Articles