pipeline {
        agent any
	stages {
		stage('Build') {
		agent {
			docker {
				image 'new_platformio_docker_build'
				args '-v $HOME/Downloads/mavesp8266:/opt/workdir'
				reuseNode true
			}
		}
			steps {
                                sh 'ls'
				sh 'cd /opt/workdir'
                                sh 'ls'
				sh 'ls /opt '
				sh 'pwd'
				sh 'echo $USER'
				sh 'uname -a'
				sh 'platformio run'
			}
		}
	}
}
