Skip to content

Commit

Permalink
Merging dev into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloud User committed Nov 20, 2019
2 parents aff9f4f + 7504fb6 commit c353d76
Show file tree
Hide file tree
Showing 35 changed files with 774 additions and 494 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ Thumbs.db
.DS_Store
.gradle
build/
out/
.idea
*.iml
*.ipr
*.iws
.project
.settings
.classpath
prodDb.mv.db
52 changes: 45 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ node("${BUILD_NODE}"){

stage ("Assemble") {
sh """
gradle assemble \
./gradlew assemble \
-PossimMavenProxy=${OSSIM_MAVEN_PROXY}
"""
archiveArtifacts "plugins/*/build/libs/*.jar"
// archiveArtifacts "apps/*/build/libs/*.jar"
}

stage ("Publish Nexus")
Expand All @@ -46,15 +47,52 @@ node("${BUILD_NODE}"){
passwordVariable: 'MAVEN_REPO_PASSWORD']])
{
sh """
gradle publish \
./gradlew publish \
-PossimMavenProxy=${OSSIM_MAVEN_PROXY}
"""
}
}

stage("Clean Workspace")
{
if ("${CLEAN_WORKSPACE}" == "true")
step([$class: 'WsCleanup'])
}
/*
stage ("Publish Docker App")
{
withCredentials([[$class: 'UsernamePasswordMultiBinding',
credentialsId: 'dockerCredentials',
usernameVariable: 'DOCKER_REGISTRY_USERNAME',
passwordVariable: 'DOCKER_REGISTRY_PASSWORD']])
{
// Run all tasks on the app. This includes pushing to OpenShift and S3.
sh """
./gradlew pushDockerImage \
-PossimMavenProxy=${OSSIM_MAVEN_PROXY}
"""
}
}
try {
stage ("OpenShift Tag Image")
{
withCredentials([[$class: 'UsernamePasswordMultiBinding',
credentialsId: 'openshiftCredentials',
usernameVariable: 'OPENSHIFT_USERNAME',
passwordVariable: 'OPENSHIFT_PASSWORD']])
{
// Run all tasks on the app. This includes pushing to OpenShift and S3.
sh """
./gradlew openshiftTagImage \
-PossimMavenProxy=${OSSIM_MAVEN_PROXY}
"""
}
}
} catch (e) {
echo e.toString()
}
*/

stage("Clean Workspace")
{
if ("${CLEAN_WORKSPACE}" == "true")
step([$class: 'WsCleanup'])
}
}
Loading

0 comments on commit c353d76

Please sign in to comment.