Is it ok to cache to sonar plugins in an Azure DevOps Pipeline?

Thanks for the quick reply, that sounds pretty good. In any case, I’m also reassured that SonarCloud will definitely download newer plugins again.
Feature request: If the two files could simply be downloaded in a future version in the Prepare or Analyze step, then you could save yourself the manual download.

In case anyone stumbles across this post and is looking for a solution to a windows pipeline, here is my customized pipeline:

variables:
  SONAR_PLUGINS: C:\Users\VssAdministrator\.sonar\cache

stages:
- stage: Build
  jobs:
  - job:
    steps:        
    - task: PowerShell@2
      inputs:
        targetType: 'inline'
        script: |
          Invoke-WebRequest https://sonarcloud.io/batch/index -OutFile sonar-scanner-hash.txt
          Invoke-WebRequest https://sonarcloud.io/api/plugins/installed -OutFile sonar-plugins.json
      displayName: Get SonarCloud Plugins List

    - task: Cache@2
      inputs:
        key: '"sonar-scanner" | sonar-scanner-hash.txt | sonar-plugins.json'
        path: $(SONAR_PLUGINS)
      displayName: Cache SonarCloud Plugins
      
    - task: SonarCloudPrepare@1
      displayName: 'Prepare SonarCloud'
	...