Skip to content

Commit

Permalink
Archive metadata file for AQAvit certification use case (#3316)
Browse files Browse the repository at this point in the history
Fixes: #3264

Signed-off-by: Ying Zhou
  • Loading branch information
yinggzz authored Feb 3, 2022
1 parent 48c9a46 commit b3c5337
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ def post(output_name) {
junit allowEmptyResults: true, keepLongStdio: true, testResults: '**/work/**/*.jtr.xml, **/junitreports/**/*.xml, **/external_test_reports/**/*.xml'
archiveSHAFile()
archiveTestenvFile()
archiveAQACertFile()

if (env.BUILD_LIST.startsWith('jck')) {
xunit (
Expand Down Expand Up @@ -903,6 +904,17 @@ def archiveSHAFile() {
}
}

def archiveAQACertFile() {
def AQACertFile = "aqa-tests/TKG/AQACert.log";
if (!params.ARTIFACTORY_SERVER) {
echo "ARTIFACTORY_SERVER is not set. Saving AQACert file on jenkins."
archiveArtifacts artifacts: AQACertFile, fingerprint: true, allowEmptyArchive: true
} else {
def pattern = "${env.WORKSPACE}/${AQACertFile}"
uploadToArtifactory(pattern)
}
}

def uploadToArtifactory(pattern) {
if (params.ARTIFACTORY_SERVER) {
def server = Artifactory.server params.ARTIFACTORY_SERVER
Expand Down

0 comments on commit b3c5337

Please sign in to comment.