environment test

This commit is contained in:
crusader 2023-02-01 15:02:53 +00:00
parent d9f0dbdfce
commit 22aa725630

5
Jenkinsfile vendored
View File

@ -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 {