Updated jenkins file
This commit is contained in:
		
							parent
							
								
									39e8872dd7
								
							
						
					
					
						commit
						b80b6dfd58
					
				
							
								
								
									
										34
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										34
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							@ -1,6 +1,10 @@
 | 
			
		||||
pipeline {
 | 
			
		||||
	agent any
 | 
			
		||||
 | 
			
		||||
    parameters {
 | 
			
		||||
       booleanParam(defaultValue: true, description: 'Enabled/disables the building of an optimized build', name: 'build_optimized')
 | 
			
		||||
    }
 | 
			
		||||
	
 | 
			
		||||
	stages {
 | 
			
		||||
		stage ('build') {
 | 
			
		||||
			parallel {
 | 
			
		||||
@ -34,6 +38,10 @@ pipeline {
 | 
			
		||||
							}
 | 
			
		||||
						}
 | 
			
		||||
						stage ('Build TeaSpeak') {
 | 
			
		||||
							environment {
 | 
			
		||||
								TEASPEAK_BUILD_TYPE="Debug"
 | 
			
		||||
							}
 | 
			
		||||
							
 | 
			
		||||
							steps {
 | 
			
		||||
								sh './build_teaspeak.sh'
 | 
			
		||||
							}
 | 
			
		||||
@ -76,16 +84,32 @@ pipeline {
 | 
			
		||||
 | 
			
		||||
							}
 | 
			
		||||
						}
 | 
			
		||||
						stage ('Build TeaSpeak') {
 | 
			
		||||
						
 | 
			
		||||
						stage ('Build TeaSpeak Debug') {
 | 
			
		||||
							environment {
 | 
			
		||||
								TEASPEAK_BUILD_TYPE="Debug"
 | 
			
		||||
							}
 | 
			
		||||
							
 | 
			
		||||
							steps {
 | 
			
		||||
								sh './build_teaspeak.sh'
 | 
			
		||||
							}
 | 
			
		||||
						}
 | 
			
		||||
						stage ('Deploy') {
 | 
			
		||||
							steps {
 | 
			
		||||
								sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/amd64'
 | 
			
		||||
							}
 | 
			
		||||
						}
 | 
			
		||||
						
 | 
			
		||||
						stage ('Build TeaSpeak Release') {
 | 
			
		||||
							when {
 | 
			
		||||
								expression { params.build_optimized }
 | 
			
		||||
							}
 | 
			
		||||
						
 | 
			
		||||
							environment {
 | 
			
		||||
								TEASPEAK_BUILD_TYPE="Release"
 | 
			
		||||
							}
 | 
			
		||||
							
 | 
			
		||||
							steps {
 | 
			
		||||
								sh './build_teaspeak.sh'
 | 
			
		||||
								sh 'cd TeaSpeak/server/repro/; chmod 400 build_private_key; ./build.sh linux/amd64_optimized'
 | 
			
		||||
							}
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user