message: Handle branches master and 1.7.x in crowdin jenkins
diff: import groovy.json.JsonSlurper;
  -// TODO refactor this after ZNC 1.7 is released, because we'll need many branches
  def upstream_user = 'znc'
  def upstream_repo = 'znc'
  -def upstream_branch = 'master'
  def my_user = 'znc-jenkins'
  def my_repo = 'znc'
  -def my_branch = 'l10n_master'
  +def branches = ['master', '1.7.x']
  timestamps {
  node {
  timeout(time: 30, unit: 'MINUTES') {
  + stage('WsCleanup') {
  + cleanupWs()
  + }
  + def tasks = [:]
  def crowdin_cli = "java -jar ${tool 'crowdin-cli'}/crowdin-cli.jar --config .ci/crowdin.yml"
  + for (def branch in branches) {
  + def upstream_branch = branch
  + def my_branch = "l10n_${branch}"
  + tasks[branch] = {
  + stage(upstream_branch) {
  + dir(upstream_branch) {
  stage('Checkout') {
  - step([$class: 'WsCleanup'])
  checkout([$class: 'GitSCM', branches: [[name: "*/${upstream_branch}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'SubmoduleOption', recursiveSubmodules: true]], userRemoteConfigs: [[credentialsId: '6ef10f80-20dc-4661-af45-52a6e1e15749', name: 'upstream', url: "github.com:${upstream_user}/${upstream_repo}.git"]]])
  }
  stage('Prepare strings') {
  dir("build") {
  + sh 'pwd'
  sh "cmake .."
  sh 'make translation'
  }
  @@ -74,5 +82,10 @@ timestamps {
  }
  }
  }
  + }
  + parallel tasks
  + }
  + }
  +}
  // vim: set ts=2 sw=2 et:
  