feature/jenkinsfile
github notify
This commit is contained in:
parent
2fe76a2749
commit
a9e9428194
1 changed files with 10 additions and 3 deletions
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
|
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue