-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade springboot 2.6.6 and misc dependencies (#200) * cannot start runs on prod #204 -- added config params to enable rabbitmq consumers to reconnect when the connection breaks. * Develop with loggers (#208) * Added logger statements * Added logger statements * research and investigation Co-authored-by: UmmulkiramR <[email protected]> * removed some logging (#211) Co-authored-by: UmmulkiramR <[email protected]> * updated nextflow version for #196 (#212) Co-authored-by: UmmulkiramR <[email protected]> * Nextflow 22 10 7 plugin fix (#213) * changed nextflow library version to use the forked copy that contains the plugins fix * changed repository name * add github token for maven packages --------- Co-authored-by: UmmulkiramR <[email protected]> Co-authored-by: Anders Richardsson <[email protected]> * readme update (#216) * updated readme with instructions on how to use the forked version of the nextflow library * Update README.md Co-authored-by: Anders Richardsson <[email protected]> * Update README.md Co-authored-by: Anders Richardsson <[email protected]> * Update README.md Co-authored-by: Anders Richardsson <[email protected]> * Update README.md Co-authored-by: Anders Richardsson <[email protected]> * Update README.md Co-authored-by: Anders Richardsson <[email protected]> * Update README.md Co-authored-by: Anders Richardsson <[email protected]> * added review suggestions. --------- Co-authored-by: UmmulkiramR <[email protected]> Co-authored-by: Anders Richardsson <[email protected]> * Jenkins migration (#217) * Update Jenkinsfile * docker file update for adding server.xml for maven --------- Co-authored-by: Yelizar Alturmessov <[email protected]> Co-authored-by: UmmulkiramR <[email protected]> * test command edit (#218) Co-authored-by: UmmulkiramR <[email protected]> * update to 3.6.0 contains: - nextflow version change with the forked library - Jenkins file update for cumulus build pipelines. --------- Co-authored-by: jaserud <[email protected]> Co-authored-by: UmmulkiramR <[email protected]> Co-authored-by: Anders Richardsson <[email protected]> Co-authored-by: Anders Richardsson <[email protected]> Co-authored-by: Yelizar Alturmessov <[email protected]>
- Loading branch information
1 parent
71e22be
commit 9c333c3
Showing
11 changed files
with
83 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,136 +1,9 @@ | ||
def dockerRepo = "ghcr.io/icgc-argo/workflow-management" | ||
def gitHubRepo = "icgc-argo/workflow-management" | ||
def commit = "UNKNOWN" | ||
def version = "UNKNOWN" | ||
|
||
pipeline { | ||
agent { | ||
kubernetes { | ||
label 'wf-management' | ||
yaml """ | ||
apiVersion: v1 | ||
kind: Pod | ||
spec: | ||
containers: | ||
- name: jdk | ||
tty: true | ||
image: openjdk:11 | ||
env: | ||
- name: DOCKER_HOST | ||
value: tcp://localhost:2375 | ||
- name: dind-daemon | ||
image: docker:18.06-dind | ||
securityContext: | ||
privileged: true | ||
runAsUser: 0 | ||
volumeMounts: | ||
- name: docker-graph-storage | ||
mountPath: /var/lib/docker | ||
- name: helm | ||
image: alpine/helm:2.12.3 | ||
command: | ||
- cat | ||
tty: true | ||
- name: docker | ||
image: docker:18-git | ||
tty: true | ||
env: | ||
- name: DOCKER_HOST | ||
value: tcp://localhost:2375 | ||
- name: HOME | ||
value: /home/jenkins/agent | ||
securityContext: | ||
runAsUser: 1000 | ||
volumes: | ||
- name: docker-graph-storage | ||
emptyDir: {} | ||
""" | ||
} | ||
} | ||
stages { | ||
stage('Prepare') { | ||
steps { | ||
script { | ||
commit = sh(returnStdout: true, script: 'git describe --always').trim() | ||
} | ||
script { | ||
version = readMavenPom().getVersion() | ||
} | ||
} | ||
} | ||
stage('Test') { | ||
steps { | ||
container('jdk') { | ||
sh "./mvnw test" | ||
} | ||
} | ||
} | ||
stage('Build & Publish Develop') { | ||
when { | ||
branch "develop" | ||
} | ||
steps { | ||
container('docker') { | ||
withCredentials([usernamePassword(credentialsId:'argoContainers', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { | ||
sh 'docker login ghcr.io -u $USERNAME -p $PASSWORD' | ||
} | ||
|
||
// DNS error if --network is default | ||
sh "docker build --network=host . -t ${dockerRepo}:edge -t ${dockerRepo}:${version}-${commit}" | ||
|
||
sh "docker push ${dockerRepo}:${version}-${commit}" | ||
sh "docker push ${dockerRepo}:edge" | ||
} | ||
} | ||
} | ||
|
||
stage('deploy to rdpc-collab-dev') { | ||
when { | ||
branch "develop" | ||
} | ||
steps { | ||
build(job: "/provision/update-app-version", parameters: [ | ||
[$class: 'StringParameterValue', name: 'RDPC_ENV', value: 'dev' ], | ||
[$class: 'StringParameterValue', name: 'TARGET_RELEASE', value: 'management'], | ||
[$class: 'StringParameterValue', name: 'NEW_APP_VERSION', value: "${version}-${commit}" ] | ||
]) | ||
} | ||
} | ||
|
||
stage('Release & Tag') { | ||
when { | ||
branch "master" | ||
} | ||
steps { | ||
container('docker') { | ||
withCredentials([usernamePassword(credentialsId: 'argoGithub', passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) { | ||
sh "git tag ${version}" | ||
sh "git push https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/${gitHubRepo} --tags" | ||
} | ||
|
||
withCredentials([usernamePassword(credentialsId:'argoContainers', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { | ||
sh 'docker login ghcr.io -u $USERNAME -p $PASSWORD' | ||
} | ||
|
||
// DNS error if --network is default | ||
sh "docker build --network=host . -t ${dockerRepo}:latest -t ${dockerRepo}:${version}" | ||
|
||
sh "docker push ${dockerRepo}:${version}" | ||
sh "docker push ${dockerRepo}:latest" | ||
} | ||
} | ||
} | ||
stage('deploy to rdpc-collab-qa') { | ||
when { | ||
branch "master" | ||
} | ||
steps { | ||
build(job: "/provision/update-app-version", parameters: [ | ||
[$class: 'StringParameterValue', name: 'RDPC_ENV', value: 'qa' ], | ||
[$class: 'StringParameterValue', name: 'TARGET_RELEASE', value: 'management'], | ||
[$class: 'StringParameterValue', name: 'NEW_APP_VERSION', value: "${version}" ] | ||
]) | ||
} | ||
} | ||
} | ||
} | ||
@Library(value='jenkins-pipeline-library@master', changelog=false) _ | ||
pipelineRDPCWorkflowManagement( | ||
buildImage: "openjdk:11", | ||
dockerRegistry: "ghcr.io", | ||
dockerRepo: "icgc-argo/workflow-management", | ||
gitRepo: "icgc-argo/workflow-management", | ||
testCommand: "./mvnw test", | ||
helmRelease: "management" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.