feature/jenkinsfile

github notify
This commit is contained in:
kudlaty 2018-03-21 20:19:39 +01:00
parent 2fe76a2749
commit a9e9428194

13
Jenkinsfile vendored
View file

@ -1,6 +1,12 @@
pipeline{ pipeline{
agent none agent any
stages { stages {
stage('env') {
steps {
sh 'printenv'
}
}
stage('Build') { stage('Build') {
agent { agent {
docker { docker {
@ -8,8 +14,9 @@ pipeline{
} }
} }
steps { steps {
env.COMMIT_HASH = sh(returnStdout: true, script: 'git rev-parse HEAD').trim() // checkout scm
sh "echo $env.COMMIT_HASH" // env.COMMIT_HASH = sh(returnStdout: true, script: 'git rev-parse HEAD').trim()
sh "git rev-parse HEAD"
sh 'python -m py_compile sources/add2vals.py sources/calc.py' sh 'python -m py_compile sources/add2vals.py sources/calc.py'
} }
} }