 Megha Mehta
					
					5 years ago
						Megha Mehta
					
					5 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
3 additions and 
3 deletions
			 
			
		 
		
			
				- 
					
					
					 
					Jenkinsfile
				
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -4,7 +4,7 @@ node { | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     stage('Start argocd') { | 
			
		
	
		
			
				
					|  |  |  |         withKubeConfig(credentialsId: 'KUBECONFIG', serverUrl: '') { | 
			
		
	
		
			
				
					|  |  |  |         withKubeConfig(credentialsId: 'eksctl-kubeconfig', serverUrl: '') { | 
			
		
	
		
			
				
					|  |  |  |             // sh 'kubectl get all' | 
			
		
	
		
			
				
					|  |  |  |             sh 'kubectl port-forward svc/argocd-server -n argocd 8080:443&' | 
			
		
	
		
			
				
					|  |  |  |             // sh 'argocd login 127.0.0.1:8080' | 
			
		
	
	
		
			
				
					|  |  | @ -14,7 +14,7 @@ node { | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |      | 
			
		
	
		
			
				
					|  |  |  |     stage('Create app') { | 
			
		
	
		
			
				
					|  |  |  |         withKubeConfig(credentialsId: 'KUBECONFIG', serverUrl: '') { | 
			
		
	
		
			
				
					|  |  |  |         withKubeConfig(credentialsId: 'eksctl-kubeconfig', serverUrl: '') { | 
			
		
	
		
			
				
					|  |  |  |             sh """ | 
			
		
	
		
			
				
					|  |  |  |             argocd app create prod-kustomize-guestbook \ | 
			
		
	
		
			
				
					|  |  |  |             --repo https://github.com/radtac-craft/argocd-example-apps.git \ | 
			
		
	
	
		
			
				
					|  |  | @ -28,7 +28,7 @@ node { | 
			
		
	
		
			
				
					|  |  |  |     }        | 
			
		
	
		
			
				
					|  |  |  |          | 
			
		
	
		
			
				
					|  |  |  |     stage('Verify app') { | 
			
		
	
		
			
				
					|  |  |  |         withKubeConfig(credentialsId: 'KUBECONFIG', serverUrl: '') { | 
			
		
	
		
			
				
					|  |  |  |         withKubeConfig(credentialsId: 'eksctl-kubeconfig', serverUrl: '') { | 
			
		
	
		
			
				
					|  |  |  |             sh 'argocd app list' | 
			
		
	
		
			
				
					|  |  |  |         }                | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
	
		
			
				
					|  |  | 
 |