|
|
|
@ -49,6 +49,7 @@ if (env.BRANCH_NAME != "master") { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
timeout(time: 1, unit: 'HOURS') { |
|
|
|
|
parallel UnitTests: { |
|
|
|
|
def stage_name = "Unit tests node: " |
|
|
|
|
node { |
|
|
|
@ -167,7 +168,7 @@ try { |
|
|
|
|
try { |
|
|
|
|
sh 'pip install -r docs/requirements.txt' |
|
|
|
|
sh 'mkdocs build -s' |
|
|
|
|
} catch(e) { |
|
|
|
|
} catch (e) { |
|
|
|
|
throw e |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -202,13 +203,13 @@ try { |
|
|
|
|
shortCommit = sh(returnStdout: true, script: "git log -n 1 --pretty=format:'%h'").trim() |
|
|
|
|
version = sh(returnStdout: true, script: "grep -oE \"version=(.*)\" ${version_property_file} | cut -d= -f2").trim() |
|
|
|
|
sh "docker image inspect \ |
|
|
|
|
--format='{{index .Config.Labels \"org.label-schema.vcs-ref\"}}' \ |
|
|
|
|
${image} \ |
|
|
|
|
| grep ${shortCommit}" |
|
|
|
|
--format='{{index .Config.Labels \"org.label-schema.vcs-ref\"}}' \ |
|
|
|
|
${image} \ |
|
|
|
|
| grep ${shortCommit}" |
|
|
|
|
sh "docker image inspect \ |
|
|
|
|
--format='{{index .Config.Labels \"org.label-schema.version\"}}' \ |
|
|
|
|
${image} \ |
|
|
|
|
| grep ${version}" |
|
|
|
|
--format='{{index .Config.Labels \"org.label-schema.version\"}}' \ |
|
|
|
|
${image} \ |
|
|
|
|
| grep ${version}" |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
stage(stage_name + 'Test image') { |
|
|
|
@ -259,6 +260,7 @@ ${image} \ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} catch (e) { |
|
|
|
|
currentBuild.result = 'FAILURE' |
|
|
|
|
} finally { |
|
|
|
|