Team-shared pipelines are owned by Gearset Team Owners rather than individual users.
This gives greater flexibility to teams to manage their orgs, CI jobs and pipelines.
How to convert a pipeline
To convert a pipeline, go to the pipeline settings (cog icon) on the Pipelines UI page, and select option to Convert to a team-shared pipeline...
This will give the list of CI jobs within the pipeline, all of which need to be converted into team-shared CI jobs before being able to convert the pipeline.
Note: Before a Pipeline can be converted to a team-shared (Pipeline) connection, both all associated CI jobs and Salesforce org connections must first be updated to team-shared connections.
Add team-shared source control connection
First, you will have to ensure that you have a team-shared source control connection added.
A tip on best practices:
Gearset recommends setting up a service account for your team-shared VCS connection.
Once this is established, you should see below notification in our app:
โ
After the team-shared VCS connection in Gearset is added, you will not have to re-add again. This set up is configured only once.
Add team-shared org connections
Once the team-shared VCS connection is added, you can move to adding team-shared org connections.
A tip on best practices:
Gearset recommends using a service user Salesforce account for all of the team-shared org connections used in the Gearset Pipeline.
Expected scenario where orgs aren't yet converted to team-shared ones
Expected scenario where orgs aren't yet converted to team-shared ones
When the option to Convert to a team-shared CI job
is greyed out, this is usually for one of below reasons:
- Your Salesforce org connection used in that CI job has not been converted to a team-shared org connection.
- Your version control system used in Gearset Pipeline isn't added as a team-shared connection on Source control and services page in our app.
โ
This is when you're expected to see below notification in Pipelines:
"Some of the resources used by this CI job are not team-shared so it cannot be converted yet. Expand this row to see the source and target of the job.
"
On the Migration
page for Pipelines, you'd see an option to Create a new team-shared org
.
Select this option to convert your existing personal org connection to a team-shared connection.
Note: This action will remove the existing personal org connection visible in My org connections
tab on your Salesforce orgs page in the app.
Instead, after conversion, your team-shared org will show up on Team-shared org connections
tab.
Once a team-shared org connection has been added, you are then able Convert to a team-shared org
.
Below the process of converting an org to a team-shared one:
Keep in mind: The above process will need to be repeated for each of the orgs and CI jobs within your Gearset Pipeline.
Convert to team-shared CI jobs
Once both of the above connections have been added into Gearset, you can proceed to select Convert to a team-shared CI job
, as the button should become available to select.
Below the process of converting to a team-shared CI job:
Once all the CI jobs have been converted to team-shared CI jobs, you're finally able to convert the entire Pipeline to a team-shared pipeline connection.
Add a team-shared Pipeline connection
Note: Converting to a team-shared Pipeline is a permanent change that cannot be undone.
After selecting Convert to a team-shared Pipeline
, you'll be asked to to confirm you understand you're making a permanent change to a team-shared Pipeline before we proceed.
Once your Pipeline is converted, you will get all the features of the pipeline being team-shared one.
Note: Team-shared Pipelines are owned by all the team owners on your Gearset team!
All the team-shared Pipelines are available on Pipelines UI page on the dropdown menu (on the left) under TEAM-SHARED
list.