All checks were successful
		
		
	
	ydeng/islandsurvivalcraft/pipeline/head This commit looks good
				
			
		
			
				
	
	
		
			35 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
pipeline {
 | 
						|
    agent {
 | 
						|
        kubernetes {
 | 
						|
            cloud 'Reslate Systems'
 | 
						|
            defaultContainer 'conda'
 | 
						|
        }
 | 
						|
    }
 | 
						|
    stages {
 | 
						|
        stage ("Install") {
 | 
						|
            steps {
 | 
						|
                sh 'conda update conda -y -q'
 | 
						|
                sh 'conda env update -n base --file environment.yml -q'
 | 
						|
                sh "conda run -n base mvn validate"
 | 
						|
            }
 | 
						|
        }
 | 
						|
        stage ("Build") {
 | 
						|
            steps {
 | 
						|
                sh "conda run -n base mvn compile"
 | 
						|
            }
 | 
						|
        }
 | 
						|
        stage ("Test") {
 | 
						|
            steps {
 | 
						|
                sh "conda run -n base mvn -Dmaven.test.skip=false test"
 | 
						|
                xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'target/surefire-reports/TEST-*.xml', stopProcessingIfError: true)]
 | 
						|
                recordCoverage(tools: [[parser: 'JUNIT', pattern: 'target/surefire-reports/TEST-*.xml']])
 | 
						|
            }
 | 
						|
        }
 | 
						|
        stage ("Package") {
 | 
						|
            steps {
 | 
						|
                sh "conda run -n base mvn package"
 | 
						|
                archiveArtifacts artifacts: 'target/*.jar', fingerprint: true, followSymlinks: false
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |