<commit_before>---
  chain:
    -
      name: "get_build_server"
      ref: "linux.dig"
      params:
        hostname: "st2-build-slave-ubuntu.service.consul"
        rand: true
        count: 1
      publish:
        build_server: "{{get_build_server.result[0]}}"
      on-success: "clean_build_env"
    -
      name: "clean_build_env"
      ref: "core.remote"
      params:
        hosts: "{{build_server}}"
        cmd: "rm -Rf ~/st2* && rm -Rf debbuild/*"
        timeout: 180
      on-success: "clone_repo"
    - 
      name: "clone_repo"
      ref: "st2cd.git_clone"
      params: 
        hosts: "{{build_server}}"
        repo: "{{repo}}"
        target: "{{repo_target}}"
        branch: "{{branch}}"
        timeout: 300
      publish:
        repodir: "{{clone_repo[build_server].stdout}}"
      on-success: "version"
    -
      name: "version"
      ref: "st2cd.st2_version"
      params:
        hosts: "{{build_server}}"
        repo: "{{repodir}}"
      on-success: "version_hack"
    - 
      name: "version_hack"
      ref: "st2cd.version_hack"
      params: 
        hosts: "{{build_server}}"
        repo: "{{repodir}}"
        build: "{{build}}"
      publish:
        version: "{{version[build_server].stdout}}"
      on-success: "make_debs"
    - 
      name: "make_debs"
      ref: "st2cd.make_debs"
      params: 
        hosts: "{{build_server}}"
        repo: "{{repodir}}"
        timeout: 1800
      on-success: "create_build_dir"
    -
      name: "create_build_dir"
      ref: "core.remote"
      params:
        hosts: "{{dl_server}}"
        cmd: "mkdir -p /home/stanley/st2cd/ubuntu14/{{version}}/{{build}}"
      on-success: "rsync_st2_deploy"
    -
      name: "rsync_st2_deploy"
      ref: "linux.rsync"
      params:
        hosts: "{{build_server}}"
        args: "-avzr -e 'ssh -i /home/stanley/.ssh/dl_rsync -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'"
        source: "/tmp/{{repodir}}/tools/st2_deploy.sh"
        dest_server: "{{dl_server}}"
        destination: "/home/stanley/st2cd/ubuntu14/{{version}}/"
        timeout: 600
      on-success: "rsync_debs"
    - 
      name: "rsync_debs"
      ref: "linux.rsync"
      params: 
        hosts: "{{build_server}}"
        args: "-avzr -e 'ssh -i /home/stanley/.ssh/dl_rsync -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'"
        source: "/home/stanley/debbuild/*"
        dest_server: "{{dl_server}}"
        destination: "/home/stanley/st2cd/ubuntu14/{{version}}/{{build}}/"
        timeout: 600
      on-success: "cp_debs"
    - 
      name: "cp_debs"
      ref: "core.remote_sudo"
      params:
        hosts: "{{dl_server}}"
        cmd: "mkdir -p /var/www/sites/releases/html/releases/st2/{{version}}/debs/ && cp -Rf /home/stanley/st2cd/ubuntu14/{{version}}/* /var/www/sites/releases/html/releases/st2/{{version}}/debs/"
        timeout: 1800
      on-success: "update_current"
    -
      name: "update_current"
      ref: "core.remote_sudo"
      params:
        hosts: "{{dl_server}}"
        cmd: "rm -Rf /var/www/sites/releases/html/releases/st2/{{version}}/debs/current && ln -s /var/www/sites/releases/html/releases/st2/{{version}}/debs/{{build}} /var/www/sites/releases/html/releases/st2/{{version}}/debs/current && echo '{{build}}' > /var/www/sites/releases/html/releases/st2/{{version}}/debs/current/VERSION.txt"
      on-success: "add_packages"
    - 
      name: "add_packages"
      ref: "freight.add_package"
      params: 
        hosts: "{{dl_server}}"
        file: "/home/stanley/st2cd/ubuntu14/{{version}}/{{build}}/*.deb"
        distribution: "trusty_{% if branch == 'master' %}unstable{% else %}stable{% endif %}"
        timeout: 300
      on-success: "update_cache"
    - 
      name: "update_cache"
      ref: "freight.update_cache"
      params: 
        hosts: "{{dl_server}}"
        timeout: 600
      on-success: "clean_repo"
    - 
      name: "clean_repo"
      ref: "st2cd.git_clean"
      params:
        hosts: "{{build_server}}"
        repo: "{{repodir}}"

  default: "get_build_server"<commit_msg>Added publish of version_dir and build_dir to st2_pkg_ubuntu14<commit_after>---
  chain:
    -
      name: "get_build_server"
      ref: "linux.dig"
      params:
        hostname: "st2-build-slave-ubuntu.service.consul"
        rand: true
        count: 1
      publish:
        build_server: "{{get_build_server.result[0]}}"
      on-success: "clean_build_env"
    -
      name: "clean_build_env"
      ref: "core.remote"
      params:
        hosts: "{{build_server}}"
        cmd: "rm -Rf ~/st2* && rm -Rf debbuild/*"
        timeout: 180
      on-success: "clone_repo"
    - 
      name: "clone_repo"
      ref: "st2cd.git_clone"
      params: 
        hosts: "{{build_server}}"
        repo: "{{repo}}"
        target: "{{repo_target}}"
        branch: "{{branch}}"
        timeout: 300
      publish:
        repodir: "{{clone_repo[build_server].stdout}}"
      on-success: "version"
    -
      name: "version"
      ref: "st2cd.st2_version"
      params:
        hosts: "{{build_server}}"
        repo: "{{repodir}}"
      on-success: "version_hack"
    - 
      name: "version_hack"
      ref: "st2cd.version_hack"
      params: 
        hosts: "{{build_server}}"
        repo: "{{repodir}}"
        build: "{{build}}"
      publish:
        version: "{{version[build_server].stdout}}"
      on-success: "make_debs"
    - 
      name: "make_debs"
      ref: "st2cd.make_debs"
      params: 
        hosts: "{{build_server}}"
        repo: "{{repodir}}"
        timeout: 1800
      on-success: "create_build_dir"
    -
      name: "create_build_dir"
      ref: "core.remote"
      params:
        hosts: "{{dl_server}}"
        cmd: "mkdir -p /home/stanley/st2cd/ubuntu/14/{{version}}/{{build}}"
      publish:
        version_dir: "/home/stanley/st2cd/ubuntu/14/{{version}}"
        build_dir: "{{version_dir}}/{{build}}"
      on-success: "rsync_st2_deploy"
    -
      name: "rsync_st2_deploy"
      ref: "linux.rsync"
      params:
        hosts: "{{build_server}}"
        args: "-avzr -e 'ssh -i /home/stanley/.ssh/dl_rsync -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'"
        source: "/tmp/{{repodir}}/tools/st2_deploy.sh"
        dest_server: "{{dl_server}}"
        destination: "{{version_dir}}/"
        timeout: 600
      on-success: "rsync_debs"
    - 
      name: "rsync_debs"
      ref: "linux.rsync"
      params: 
        hosts: "{{build_server}}"
        args: "-avzr -e 'ssh -i /home/stanley/.ssh/dl_rsync -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'"
        source: "/home/stanley/debbuild/*"
        dest_server: "{{dl_server}}"
        destination: "{{build_dir}}/"
        timeout: 600
      on-success: "cp_debs"
    - 
      name: "cp_debs"
      ref: "core.remote_sudo"
      params:
        hosts: "{{dl_server}}"
        cmd: "mkdir -p /var/www/sites/releases/html/releases/st2/{{version}}/debs/ && cp -Rf {{version_dir}}/* /var/www/sites/releases/html/releases/st2/{{version}}/debs/"
        timeout: 1800
      on-success: "update_current"
    -
      name: "update_current"
      ref: "core.remote_sudo"
      params:
        hosts: "{{dl_server}}"
        cmd: "rm -Rf /var/www/sites/releases/html/releases/st2/{{version}}/debs/current && ln -s /var/www/sites/releases/html/releases/st2/{{version}}/debs/{{build}} /var/www/sites/releases/html/releases/st2/{{version}}/debs/current && echo '{{build}}' > /var/www/sites/releases/html/releases/st2/{{version}}/debs/current/VERSION.txt"
      on-success: "add_packages"
    - 
      name: "add_packages"
      ref: "freight.add_package"
      params: 
        hosts: "{{dl_server}}"
        file: "{{build_dir}}/*.deb"
        distribution: "trusty_{% if branch == 'master' %}unstable{% else %}stable{% endif %}"
        timeout: 300
      on-success: "update_cache"
    - 
      name: "update_cache"
      ref: "freight.update_cache"
      params: 
        hosts: "{{dl_server}}"
        timeout: 600
      on-success: "clean_repo"
    - 
      name: "clean_repo"
      ref: "st2cd.git_clean"
      params:
        hosts: "{{build_server}}"
        repo: "{{repodir}}"

  default: "get_build_server"
{'fraction_non_alphanumeric': 0.16619855904261815, 'fraction_numerical': 0.013921113689095127, 'mean_word_length': 2.197969543147208, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 12, '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': '1773106', 'n_tokens_mistral': 3131, 'n_tokens_neox': 2883, 'n_words': 503}