Execute Post Steps after Creating a Package

Task ID

Latest Version

sfpowerscripts-postcreatepackage-task

1.0.12

This task is typically appended to the end of a pipeline if tagging is enabled in the Create Source or Unlocked Package tasks. The Execute Post Steps task will persist the Git tag by pushing it to the source code repository. A reminder to add this task to the pipeline is provided if a Create Package command exists in the pipeline with the tagging option enabled.

Task Snapshot

Parameters

Input
Output
Untitled
Input

Classic Designer Labels are in Bold, YAML Variables are in italics

Select the version control provider / versionControlProvider

  • The version control provider that hosts the particular repository. Select the appropriate repository type from the drop down (in UI) or pass the name of the service connection. You can read more on using service connections here.

    The supported options are - Github Connection / github_connection Use this if your repository provider is GitHub - GitHub Enterprise Connection / github_enterprise_connection Use this if your repository provider is GitHub Enterprise - Bitbucket Connection / bitbucket_connection Use this if your repository provider is Bitbucket - Azure Repo / azureRepo

    Use this if your repository provider is Azure Repo. Please ensure the agent has the right permissions for authenticating to the Azure Repo ( enabled by 'Allow Scripts to access the OAuth Token' ) - Other Git / otherGit Any other Git provider which can be authenticated using a username/password based basic authentication schema. - Git which is already authenticated at the agent level / hostedAgentGit Use this option if the agent is already authenticated to Git repository (typically used in a self hosted agent or if none of the above methods are not suffice to connect to your git repository)

Output

None

steps:
displayName: 'Post Execution for Create Package Tasks'
inputs:
github_connection: 'GitHub connection 1'

When using the option Git which is already authenticate at the agent level, the task will push to the repository using the URL mentioned in the artifact. Ensure the artifact is produced with the correct URL during the build phase.

‚Äč

Changelog

  • 1.0.6 Update Core dependency

  • 1.0.1 Initial Version

Edit on GitHub