Updated Readme
This commit is contained in:
		
							parent
							
								
									0e28922491
								
							
						
					
					
						commit
						53c96e2a9d
					
				
							
								
								
									
										18
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								README.md
									
									
									
									
									
								
							| @ -14,4 +14,20 @@ load "helpers.groovy" | |||||||
| After all you will have in your pipeline all functions that `helpers.groovy` provides: | After all you will have in your pipeline all functions that `helpers.groovy` provides: | ||||||
| - stageWithChecks | - stageWithChecks | ||||||
| - setSuccessCheck | - setSuccessCheck | ||||||
| - withGiteaCreds | - withGiteaCreds | ||||||
|  | - withDockerCreds | ||||||
|  | 
 | ||||||
|  | ### Example: | ||||||
|  | ```groovy | ||||||
|  | helpersPath = "/tmp/helpers.groovy" | ||||||
|  | sh "curl -L http://10.244.188.80:30210/weissmall/jenkins-tools/raw/branch/master/helpers.groovy -o $helpersPath" | ||||||
|  | helpers = load helpersPath | ||||||
|  | ... | ||||||
|  | helpers.stageWithChecks('tests') { | ||||||
|  |     ... | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | helpers.withDockerCreds("Creds", env.DOCKER_REGISTRY_HOST) { | ||||||
|  |     ... | ||||||
|  | } | ||||||
|  | ``` | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user