Skip to content

Commit

Permalink
Sync TRSS code via grovvy script
Browse files Browse the repository at this point in the history
related: adoptium#654
Signed-off-by: lanxia <lan_xia@ca.ibm.com>
  • Loading branch information
llxia committed Jun 16, 2022
1 parent 4e26abe commit e325abc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions TestResultSummaryService/jenkins/trssCodeSync.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!groovy

def TRSS_NODE = params.TRSS_NODE ?: "ci.role.trss"

node(TRSS_NODE) {

def TRSS_WORKSPACE = params.TRSS_WORKSPACE ?: "$WORKSPACE/aqa-test-tools"
if(!fileExists("$TRSS_WORKSPACE")) {
assert false : "TRSS_WORKSPACE ${TRSS_WORKSPACE} does not exist!"
}
echo "Sync code in TRSS server"
dir("$TRSS_WORKSPACE") {
sh "pwd"
sh '''
git pull
echo "Update TRSS client..."
cd test-result-summary-client
echo "npm ci --production"
npm ci --production
echo "npm run build"
CI=false npm run build
echo "Update TRSS server..."
cd ../TestResultSummaryService
echo "npm ci --production"
npm ci --production
'''
}
}

0 comments on commit e325abc

Please sign in to comment.