Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
added support for pushing new release versions down to dependent proj…
Browse files Browse the repository at this point in the history
…ects
  • Loading branch information
jstrachan committed Jul 6, 2016
1 parent 24fe088 commit c9e2043
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Jenkinsfile
Expand Up @@ -17,5 +17,8 @@ node{
if (prId != null){
pipeline.mergePullRequest(prId)
}

stage 'Update downstream dependencies'
pipeline.updateDownstreamDependencies(stagedProject)
}
}
40 changes: 40 additions & 0 deletions release.groovy
Expand Up @@ -47,6 +47,46 @@ def mergePullRequest(prId){
project = 'fabric8io/fabric8'
pullRequestId = prId
}
}

def updateDownstreamDependencies(stagedProject){
def downstreamProjects = [
'fabric8io/fabric8-devops',
'fabric8io/fabric8-forge',
'fabric8io/fabric8-ipaas',
'fabric8io/ipaas-quickstarts',

'fabric8-quickstarts/cdi-camel',
'fabric8-quickstarts/swarm-camel',
'fabric8-quickstarts/spring-boot-ribbon',
'fabric8-quickstarts/spring-boot-camel',
'fabric8-quickstarts/spring-boot-camel-xml'
]
pushPomPropertyChangePR{
propertyName = 'fabric8.version'
projects = downstreamProjects
version = stagedProject[1]
}

def parentPomDownstreamProjects = [
'fabric8io/funktion'
]
pushPomPropertyChangePR{
parentPomLocation = 'parent/pom.xml'
propertyName = 'fabric8.version'
projects = parentPomDownstreamProjects
version = stagedProject[1]
}

parentPomDownstreamProjects = [
'fabric8io/fabric8-maven-plugin'
]
pushPomPropertyChangePR{
parentPomLocation = 'parent/pom.xml'
propertyName = 'version.fabric8'
projects = parentPomDownstreamProjects
version = stagedProject[1]
}
}

return this;

0 comments on commit c9e2043

Please sign in to comment.