Importing historical data for DevOps tools
Use the service catalog to onboard a new app and import historical DevOps data for that app. Enable polling to import data that is mapped to associated plans, repositories and pipelines on a scheduled frequency.
Import historical DevOps data for existing tools
- Jira (Plan)
- GitHub and GitHub Enterprise (Coding)
- Jenkins (Orchestration)
- Ensure that you have created, connected, and discovered the tool you are importing data for.
- Import requests for Plan tool (Jira) are processed first, followed by repository and pipeline import requests.
Import workflow and retries
- Jira: a page is created for a range of 15 days.
- GitHub : a page is created for every 100 commits.
- Jenkins: pages are created per build.
- Branches
- Commits
- Committers
- Tags
- Repositories
- Work Items
While processing an import request, if any page errors out, an inbuilt retry mechanism tries processing the page for a set number of times. After all automatic retries, if the page is still in error state, the subsequent or remaining pages in the import request are processed. The overall state of the import request remains in error.
- Specify the count of retries to auto-attempt, in case the import request page fails in the Maximum retries per page, while importing field. If after all the automatic retries, page does not succeed, the import request will process the remaining pages. The overall status of the import request reflects as errored.
- You can manually retry attempting a failed import by clicking the Retry import button, on the failed import request page,
Polling schedule and configuration
Enable polling to import DevOps data on a scheduled frequency to apps that have imported historical data, and are mapped to associated plans, repositories, and pipelines.
After you have onboarded an app and imported the associated DevOps data, you can enable the base system schedule for import requests to be created for the plans, repositories, and pipelines that are tracked and associated to an app. When the import requests complete processing, the associated data is persisted and display against the app. While the base system DevOpsImportPolling schedule job is active by default, you must enable polling from the DevOps properties to run the scheduled job.
To enable polling, navigate to and select the check box.
- The scheduled job only applies to active apps. Ensure that the app you are configuring polling for is in active state and the Track field is enabled for the relevant pipelines.
- Consider the following when you're modifying the schedule frequency:
- For JIRA the default time zone is based on the time zone of the JIRA server's location.
- For Jenkins the default time zone is UTC. For more information see Jenkins documentation on System Time time zones.
- Maximum retries per page while importing
- Maximum number of pages to process at a time for an import request
- To save payloads as attachments on the Import Request Page record, set the "Value" field to "true". Anything else is considered false.
Import existing Azure DevOps pipelines, repositories, and plans
After you have integrated Azure DevOps with DevOps, you can import up to 90 days of existing Azure DevOps pipeline, repository, and plan data. You can then use DevOps dashboards to view and manage Azure DevOps data.
Before you begin
Role required: admin
About this task
- You will request the data from the service catalog as a predefined catalog item.
- Imported test summaries, artifacts, and packages are linked to pipeline executions and not to step executions.
- SonarQube scan results are not imported.
- Azure DevOps imposes the following restrictions:
- Maximum 20,000 work items can be imported every 15 days.
- Maximum 200 run commits can be mapped to any pipeline execution.
- Test results for pipeline executions longer than 7 days are not returned.
Procedure
Import existing GitLab pipelines and repositories
After you have integrated GitLab with DevOps, you can import up to 90 days of existing GitLab pipeline and repository data. You can then use DevOps dashboards to view and manage GitLab data.
Before you begin
Role required: admin
About this task
- You will request the data from the service catalog as a predefined catalog item.
- Imported test summaries are linked to pipeline executions and not to step executions.
- Only artifacts published using the artifacts keyword are imported.
- Test results are not displayed for artifacts that have expired. You can set the expiration date of an artifact by configuring the expire_in property in the pipeline. For more information on artifact expiration policies, see Artifact and job meta data expiration.
- SonarQube scan results are not imported.
- Only 6400 commits per branch can be imported in a single import.
- GitLab imposes the following restriction: While associating run commits to a
pipeline execution, GitLab doesn't provide the starting part of the commit
details in some scenarios. It provides only the part before the SHA as
'0000000000000000'. In such scenarios, the latest commit will be associated as
the run commit. For example, when a new branch is created or when a pipeline is
run manually.Note:The import process can take some time, hours for very large data sets.