20 lines
		
	
	
	
		
			622 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			622 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
pipeline {
 | 
						|
    agent any
 | 
						|
    
 | 
						|
    stages {
 | 
						|
        stage('Build') {
 | 
						|
            steps {
 | 
						|
                git branch: 'cud', url: 'https://git.siwatsystem.com/ise-senior-iot/iot-firmware.git'
 | 
						|
                sh 'export PLATFORMIO_PATH=/root/.platformio/penv/bin/platformio'
 | 
						|
                sh '/usr/bin/python3 gen_release.py'
 | 
						|
                stash includes: 'release/**/*', name: 'release_binaries'
 | 
						|
            }
 | 
						|
        }
 | 
						|
        stage('Publish') {
 | 
						|
            steps {
 | 
						|
                unstash 'release_binaries'
 | 
						|
                archiveArtifacts artifacts: 'release/**/*', fingerprint: true
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |