Skip to content

Commit

Permalink
s3 log archive update to jenkinsfile (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
zach1221 authored Mar 7, 2024
1 parent f346ff9 commit 2e382e1
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions sorc/test/ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pipeline {
stage('Launch SonarQube') {
steps {
script {
build job: '/land-da/land-da-sonarqube', parameters: [
build job: '/land-DA_workflow/land-da-sonarqube', parameters: [
string(name: 'BRANCH_NAME', value: env.CHANGE_BRANCH ?: 'develop'),
string(name: 'FORK_NAME', value: env.CHANGE_FORK ?: '')
], wait: false
Expand Down Expand Up @@ -68,6 +68,7 @@ pipeline {
cleanWs()
checkout scm
sh '''
git submodule update --init --recursive
ln -fs /scratch2/NAGAPE/epic/UFS_Land-DA/inputs /scratch2/NAGAPE/epic/role.epic/jenkins/workspace/
sh sorc/app_build.sh
cp sorc/test/hera_ctest.sh sorc/build/
Expand All @@ -76,7 +77,10 @@ pipeline {
cd sorc/build/
echo $(pwd)
./run_hera_ctest.sh
'''
tar --create --gzip --verbose --dereference --file "hera.tgz" ${WORKSPACE}/sorc/build/Testing/Temporary/*.log
'''
s3Upload consoleLogLevel: 'INFO', dontSetBuildResultOnFailure: false, dontWaitForConcurrentBuildCompletion: false, entries: [[bucket: 'noaa-epic-prod-jenkins-artifacts', excludedFile: '', flatten: true, gzipFiles: false, keepForever: false, managedArtifacts: true, noUploadOnFailure: false, selectedRegion: 'us-east-1', showDirectlyInBrowser: false, sourceFile: "**/*tgz*", storageClass: 'STANDARD', uploadFromSlave: false, useServerSideEncryption: false]], pluginFailureResultConstraint: 'FAILURE', profileName: 'main', userMetadata: []

}
}
stage('Run Land DA Workflow on Orion') {
Expand All @@ -92,6 +96,7 @@ pipeline {
cleanWs()
checkout scm
sh '''
git submodule update --init --recursive
ln -fs /work/noaa/epic/UFS_Land-DA/inputs /work/noaa/epic/role-epic/jenkins/workspace/
sh sorc/app_build.sh
cp sorc/test/orion_ctest.sh sorc/build/
Expand All @@ -103,8 +108,8 @@ pipeline {
cd sorc/build/
echo $(pwd)
ctest
'''
}
'''
}
}
stage('Run Land DA Workflow on Hercules') {
agent {
Expand Down Expand Up @@ -138,7 +143,7 @@ pipeline {
sh '''
'''
}
}
}
}
}
}
}

0 comments on commit 2e382e1

Please sign in to comment.