Updating the Git Configuration Source Provider for a Stack

Update the Git configuration source provider used by a stack in Resource Manager. The updated configuration source provider is used when you run jobs on the stack.

For more information about configuration source providers, see Managing Configuration Source Providers.

    1. Open the navigation menu and click Developer Services. Under Resource Manager, click Stacks.
    2. On the Stacks page, select the compartment that contains the stack that you want.
    3. Click the name of the stack that you want.
    4. On the Stack details page, go to Edit and then select Edit stack.
    5. On the Edit stack page, select a different Git configuration source provider.
      If you need to create a Git configuration source provider, click Create configuration source provider and enter values. For information about these fields, see Creating a GitHub Configuration Source Provider and Creating a GitLab Configuration Source Provider.
    6. Select the Git repository and branch.
    7. Change other values as needed.
      For information about the fields, see Creating a Stack from Git.
    8. Click Next twice.
    9. Click Save changes.
  • Use the oci resource-manager stack update-from-git-provider command and required parameters to update a stack's configuration source provider.

    oci resource-manager stack update-from-git-provider --stack-id <stack_OCID> --config-source-configuration-source-provider-id <Git_configuration_source_provider_OCID>

    For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.

  • Use the UpdateStack operation to update the Git configuration source provider used by a stack.

    For an example of the configSource part of the request, see UpdateGitConfigSourceDetails.