Move deployment logic to release11-tools-deployment repository
This commit is contained in:
		
							
								
								
									
										34
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										34
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							| @@ -1,37 +1,9 @@ | ||||
| pipeline { | ||||
|     agent any | ||||
|     tools { | ||||
|         git 'Default' | ||||
|     } | ||||
|     parameters { | ||||
|         booleanParam(name: 'TERRAFORM', defaultValue: false) | ||||
|     } | ||||
|     stages { | ||||
|         stage('Clean workspace') { | ||||
|         stage('Run Tools Deployment Job') { | ||||
|             steps { | ||||
|                 cleanWs() | ||||
|             } | ||||
|         } | ||||
|         stage('Checkout') { | ||||
|             steps { | ||||
|                 checkout([ | ||||
|                     $class: 'GitSCM', | ||||
|                     branches: [[name: 'master']], | ||||
|                     extensions: [], | ||||
|                     userRemoteConfigs: [[credentialsId: 'tools-deploy-key-gitea', url: '_gitea@gitea.release11.com:R11/release11-tools.git']] | ||||
|                 ]) | ||||
|             } | ||||
|         } | ||||
|         stage('Run Ansible playbook') { | ||||
|             steps { | ||||
|                 sh ''' | ||||
|                     pwd | ||||
|                     ls | ||||
|                 ''' | ||||
|                 ansiblePlaybook( | ||||
|                     playbook: 'TOOLS.yml', | ||||
|                     inventory: 'inventory/hosts', | ||||
|                     credentialsId: 'tools-deploy-key-netadm' | ||||
|                 build( | ||||
|                     job: '../tools-deployment' | ||||
|                 ) | ||||
|             } | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user