Added Jenkinsfile
This commit is contained in:
		
							parent
							
								
									d646d460e0
								
							
						
					
					
						commit
						83b66a572d
					
				
							
								
								
									
										18
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,18 @@ | |||||||
|  | 
 | ||||||
|  | node {     | ||||||
|  |       def app      | ||||||
|  |       stage('Clone repository') {                | ||||||
|  |               | ||||||
|  |             checkout scm     | ||||||
|  |       }      | ||||||
|  |       stage('Build image') {          | ||||||
|  |         | ||||||
|  |             app = docker.build("agreiner/advancedmqttbridge")     | ||||||
|  |        } | ||||||
|  |        stage('Push image') { | ||||||
|  |                                                   docker.withRegistry('https://reg.greinet.com', 'docker_registry_jenkins') {             | ||||||
|  |        app.push("1.${env.BUILD_NUMBER}")             | ||||||
|  |        app.push("latest")         | ||||||
|  |               }     | ||||||
|  |            } | ||||||
|  |         } | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user