environment test

This commit is contained in:
crusader 2023-02-01 14:57:46 +00:00
parent f1e1175005
commit 07133567f5

4
Jenkinsfile vendored
View File

@ -42,9 +42,7 @@ 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_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]
def app_version = sh(returnStdout: true, script: "cat build.gradle | grep -o 'version = [^,]*'").trim()
stage('Test') {
try {