mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	Add conditionals to root YAML definition
Prevents running builds (that get skipped) in PR CI, and prevents running tests (which are irrelevant) in Merge CI.
This commit is contained in:
		
							parent
							
								
									3e53eb1cde
								
							
						
					
					
						commit
						aab79ef346
					
				@ -16,11 +16,13 @@ trigger:
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  - template: azure-pipelines-main.yml
 | 
			
		||||
    condition: ! or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))
 | 
			
		||||
    parameters:
 | 
			
		||||
      LinuxImage: 'ubuntu-latest'
 | 
			
		||||
      RestoreBuildProjects: $(RestoreBuildProjects)
 | 
			
		||||
 | 
			
		||||
  - template: azure-pipelines-test.yml
 | 
			
		||||
    condition: ! or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))
 | 
			
		||||
    parameters:
 | 
			
		||||
      ImageNames:
 | 
			
		||||
        Linux: 'ubuntu-latest'
 | 
			
		||||
@ -28,6 +30,7 @@ jobs:
 | 
			
		||||
        macOS: 'macos-latest'
 | 
			
		||||
 | 
			
		||||
  - template: azure-pipelines-abi.yml
 | 
			
		||||
    condition: ! or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))
 | 
			
		||||
    parameters:
 | 
			
		||||
      Packages:
 | 
			
		||||
        Naming:
 | 
			
		||||
@ -45,3 +48,4 @@ jobs:
 | 
			
		||||
      LinuxImage: 'ubuntu-latest'
 | 
			
		||||
 | 
			
		||||
  - template: azure-pipelines-package.yml
 | 
			
		||||
    condition: or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user