<commit_before>#!/usr/bin/groovy
def imagesBuiltByPipeline() {
  return ['git-collector','chaos-monkey','elasticsearch-logstash-template','grafana','hubot-notifier','image-linker','kibana-config']
}

def externalImages(){
  return ['exposecontroller','nginx-controller','alpine-caddy','hubot-irc','eclipse-orion','nexus','gerrit','fabric8-kiwiirc','brackets','jenkins-jnlp-client','taiga-front','taiga-back','hubot-slack','lets-chat','jenkins-docker','maven-builder','gogs','grafana']
}

def repo(){
 return 'fabric8io/fabric8-devops'
}

def updateDependencies(source){

  def properties = []
  properties << ['<fabric8.version>','io/fabric8/kubernetes-api']
  //properties << ['<docker.maven.plugin.version>','io/fabric8/docker-maven-plugin']
  //properties << ['<fabric8.maven.plugin.version>','io/fabric8/fabric8-maven-plugin']

  updatePropertyVersion{
    updates = properties
    repository = source
    project = repo()
  }
}

def stage(){
  return stageProject{
    project = repo()
    useGitTagForNextVersion = true
    extraImagesToStage = externalImages()
  }
}

def approveRelease(project){
  def releaseVersion = project[1]
  approve{
    room = null
    version = releaseVersion
    console = null
    environment = 'fabric8'
  }
}

def updateDownstreamDependencies(stagedProject) {
  pushPomPropertyChangePR {
    propertyName = 'fabric8-devops.version'
    projects = [
            'fabric8io/fabric8-maven-dependencies'
    ]
    version = stagedProject[1]
  }
  pushPomPropertyChangePR {
    propertyName = 'fabric8.devops.version'
    projects = [
            'fabric8io/fabric8-platform',
            'fabric8io/fabric8-forge'
    ]
    version = stagedProject[1]
  }
}

def release(project){<commit_msg>push new releases into ipaas-platform<commit_after>#!/usr/bin/groovy
def imagesBuiltByPipeline() {
  return ['git-collector','chaos-monkey','elasticsearch-logstash-template','grafana','hubot-notifier','image-linker','kibana-config']
}

def externalImages(){
  return ['exposecontroller','nginx-controller','alpine-caddy','hubot-irc','eclipse-orion','nexus','gerrit','fabric8-kiwiirc','brackets','jenkins-jnlp-client','taiga-front','taiga-back','hubot-slack','lets-chat','jenkins-docker','maven-builder','gogs','grafana']
}

def repo(){
 return 'fabric8io/fabric8-devops'
}

def updateDependencies(source){

  def properties = []
  properties << ['<fabric8.version>','io/fabric8/kubernetes-api']
  //properties << ['<docker.maven.plugin.version>','io/fabric8/docker-maven-plugin']
  //properties << ['<fabric8.maven.plugin.version>','io/fabric8/fabric8-maven-plugin']

  updatePropertyVersion{
    updates = properties
    repository = source
    project = repo()
  }
}

def stage(){
  return stageProject{
    project = repo()
    useGitTagForNextVersion = true
    extraImagesToStage = externalImages()
  }
}

def approveRelease(project){
  def releaseVersion = project[1]
  approve{
    room = null
    version = releaseVersion
    console = null
    environment = 'fabric8'
  }
}

def updateDownstreamDependencies(stagedProject) {
  pushPomPropertyChangePR {
    propertyName = 'fabric8-devops.version'
    projects = [
            'fabric8io/fabric8-maven-dependencies'
    ]
    version = stagedProject[1]
  }
  pushPomPropertyChangePR {
    propertyName = 'fabric8.devops.version'
    projects = [
            'fabric8io/fabric8-platform',
            'fabric8io/ipaas-platform',
            'fabric8io/fabric8-forge'
    ]
    version = stagedProject[1]
  }
}

def release(project){
{'fraction_non_alphanumeric': 0.1525327262379055, 'fraction_numerical': 0.012236767216846899, 'mean_word_length': 4.2541106128550075, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1493749', 'n_tokens_mistral': 1204, 'n_tokens_neox': 1117, 'n_words': 150}