Skip to content

Commit

Permalink
[develop] Add Sonarqube stage to the Jenkinsfile for PLATFORM-926 (uf…
Browse files Browse the repository at this point in the history
…s-community#935)

Added the Sonarqube stage to the Jenkinsfile in the SRW App's GitHub repository.

Additionally, a fix has been made to allow the Functional Workflow Task Tests stage to successfully run on Hera GNU (30 minute wall time isn't enough for the the community test to finish using GNU compiled executables).
  • Loading branch information
MichaelLueken authored Oct 13, 2023
1 parent 77a81fa commit f9dd5e1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .cicd/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ pipeline {
}

stages {
stage('Launch SonarQube') {
steps {
script {
build job: '/ufs-srweather-app/ufs-srw-sonarqube', parameters: [
string(name: 'BRANCH_NAME', value: env.CHANGE_BRANCH ?: 'develop'),
string(name: 'FORK_NAME', value: env.CHANGE_FORK ?: '')
], wait: false
}
}
}

// Uncomment the following block to re-enable PW clusters
/*
// Start the NOAA Parallel Works clusters, if necessary
Expand Down
6 changes: 6 additions & 0 deletions .cicd/scripts/wrapper_srw_ftest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ if [[ "${SRW_PLATFORM}" == gaea-c5 ]]; then
sed -i 's|qos=batch|qos=normal|g' ${WORKSPACE}/${SRW_PLATFORM}/.cicd/scripts/${workflow_cmd}_srw_ftest.sh
fi

if [[ "${SRW_PLATFORM}" == hera ]]; then
if [[ "${SRW_COMPILER}" == gnu ]]; then
sed -i 's|00:30:00|00:45:00|g' ${WORKSPACE}/${SRW_PLATFORM}/.cicd/scripts/${workflow_cmd}_srw_ftest.sh
fi
fi

# Call job card and return job_id
echo "Running: ${workflow_cmd} -A ${SRW_PROJECT} ${arg_1} ${WORKSPACE}/${SRW_PLATFORM}/.cicd/scripts/${workflow_cmd}_srw_ftest.sh"
job_id=$(${workflow_cmd} -A ${SRW_PROJECT} ${arg_1} ${WORKSPACE}/${SRW_PLATFORM}/.cicd/scripts/${workflow_cmd}_srw_ftest.sh)
Expand Down

0 comments on commit f9dd5e1

Please sign in to comment.