environment test
This commit is contained in:
parent
d9f0dbdfce
commit
22aa725630
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -42,8 +42,9 @@ podTemplate(
|
|||
def shortGitCommit = "${gitCommit[0..10]}"
|
||||
def previousGitCommit = sh(script: "git rev-parse ${gitCommit}~", returnStdout: true)
|
||||
def docker_registry_url = "harbor.loafle.net"
|
||||
def app_version = sh(returnStdout: true, script: "cat build.gradle | grep -o 'version = [^,]*'").trim()
|
||||
sh "echo Project in version value: $app_version"
|
||||
def app_version_value = sh(returnStdout: true, script: "cat build.gradle | grep -o 'version = [^,]*'").trim()
|
||||
sh "echo Project in version value: $app_version_value"
|
||||
def app_version = app_version_value.split(/=/)[1].trim()
|
||||
|
||||
stage('Test') {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue
Block a user