Added Jenkinsfile.
This commit is contained in:
		
							parent
							
								
									731c3b8349
								
							
						
					
					
						commit
						3d3607d627
					
				
							
								
								
									
										29
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,29 @@
 | 
			
		||||
pipeline {
 | 
			
		||||
    agent any
 | 
			
		||||
 | 
			
		||||
    stages {
 | 
			
		||||
        stage('Checkout') {
 | 
			
		||||
            steps {
 | 
			
		||||
                git url: 'http://10.1.1.1:3000/Rhinemann/sys-prog-coursework-lab-4.git', credentialsId: 'access_for_jenkins'
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        stage('Build') {
 | 
			
		||||
            steps {
 | 
			
		||||
                g++ main.cpp sort.h sort.cpp -o test -lgtest -pthread
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        stage('Test') {
 | 
			
		||||
            steps {
 | 
			
		||||
                test --gtest_output=xml:test_report.xml
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    post {
 | 
			
		||||
    always {
 | 
			
		||||
        xunit (tools: [ GoogleTest(pattern: 'test_report.xml') ])
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user