)]}'
{"scripts/common_functions.sh":[{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":440,"context_line":"\tps axjf | grep bin/dstat | grep -v grep | awk \u0027{print $2;}\u0027 | sudo xargs -t -n 1 -r kill"},{"line_number":441,"context_line":"}"},{"line_number":442,"context_line":""},{"line_number":443,"context_line":"function item_in_array () {"},{"line_number":444,"context_line":"    local item"},{"line_number":445,"context_line":"    for item in \"${@:2}\"; do"},{"line_number":446,"context_line":"        if [[ \"$item\" \u003d\u003d \"$1\" ]]; then"},{"line_number":447,"context_line":"            return 0"},{"line_number":448,"context_line":"        fi"},{"line_number":449,"context_line":"    done"},{"line_number":450,"context_line":"    return 1"},{"line_number":451,"context_line":"}"}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_8192d94a","line":451,"range":{"start_line":443,"start_character":0,"end_line":451,"end_character":1},"updated":"2017-05-25 19:23:30.000000000","message":"I think this brings too much complexity, please see my comment in toci.. file.","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"0f82994ac2ba57a092469fca961d6acf94e407d3","unresolved":false,"context_lines":[{"line_number":448,"context_line":"        fi"},{"line_number":449,"context_line":"    done"},{"line_number":450,"context_line":"    return 1"},{"line_number":451,"context_line":"}"}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_3ff9cf4c","line":451,"updated":"2017-05-26 14:10:43.000000000","message":"The complexity may still be needed, see comments for toci_gate_test-oooq.sh","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"}],"scripts/mirror-server/mirror-server.pp":[{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":53,"context_line":"}"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"cron {\"promote-master\":"},{"line_number":56,"context_line":"    command \u003d\u003e \"timeout 10m /opt/stack/tripleo-ci/scripts/mirror-server/promote.sh master current-tripleo tripleo-dlrn-promote periodic-tripleo-ci-centos-7-ovb-oooq periodic-tripleo-ci-centos-7-ovb-updates \u0026\u003e/var/log/last_master_promotion.log\","},{"line_number":57,"context_line":"    minute  \u003d\u003e \"40\""},{"line_number":58,"context_line":"}"},{"line_number":59,"context_line":""}],"source_content_type":"text/x-puppet","patch_set":26,"id":"ff0f0b1f_14d96cf3","line":56,"range":{"start_line":56,"start_character":155,"end_line":56,"end_character":164},"updated":"2017-05-25 19:23:30.000000000","message":"I think we\u0027ll have it as -ovb-ha-oooq","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":58,"context_line":"}"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"cron {\"promote-ocata\":"},{"line_number":61,"context_line":"    command \u003d\u003e \"timeout 10m /opt/stack/tripleo-ci/scripts/mirror-server/promote.sh ocata current-tripleo-ocata tripleo-dlrn-promote-ocata periodic-tripleo-ci-centos-7-ovb-ha-ocata \u0026\u003e/var/log/last_ocata_promotion.log\","},{"line_number":62,"context_line":"    minute  \u003d\u003e \"40\""},{"line_number":63,"context_line":"}"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-puppet","patch_set":26,"id":"ff0f0b1f_34ed908b","line":61,"range":{"start_line":61,"start_character":110,"end_line":61,"end_character":179},"updated":"2017-05-25 19:23:30.000000000","message":"I believe all these should be transited too","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"0f82994ac2ba57a092469fca961d6acf94e407d3","unresolved":false,"context_lines":[{"line_number":58,"context_line":"}"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"cron {\"promote-ocata\":"},{"line_number":61,"context_line":"    command \u003d\u003e \"timeout 10m /opt/stack/tripleo-ci/scripts/mirror-server/promote.sh ocata current-tripleo-ocata tripleo-dlrn-promote-ocata periodic-tripleo-ci-centos-7-ovb-ha-ocata \u0026\u003e/var/log/last_ocata_promotion.log\","},{"line_number":62,"context_line":"    minute  \u003d\u003e \"40\""},{"line_number":63,"context_line":"}"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-puppet","patch_set":26,"id":"ff0f0b1f_5ffc833d","line":61,"updated":"2017-05-26 14:10:43.000000000","message":"I would have preferred to do smaller steps, but OK","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":63,"context_line":"}"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"cron {\"promote-newton\":"},{"line_number":66,"context_line":"    command \u003d\u003e \"timeout 10m /opt/stack/tripleo-ci/scripts/mirror-server/promote.sh newton current-tripleo-newton tripleo-dlrn-promote-newton periodic-tripleo-ci-centos-7-ovb-ha-newton \u0026\u003e/var/log/last_newton_promotion.log\","},{"line_number":67,"context_line":"    minute  \u003d\u003e \"40\""},{"line_number":68,"context_line":"}"},{"line_number":69,"context_line":""}],"source_content_type":"text/x-puppet","patch_set":26,"id":"ff0f0b1f_d49094f0","line":66,"range":{"start_line":66,"start_character":141,"end_line":66,"end_character":183},"updated":"2017-05-25 19:23:30.000000000","message":"ditto","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":9592,"name":"wes hayutin","email":"whayutin@redhat.com","username":"weshayutin"},"change_message_id":"493c7ad47b4d964d509e8dfaf2488b1a21e525ac","unresolved":false,"context_lines":[{"line_number":53,"context_line":"}"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"cron {\"promote-master\":"},{"line_number":56,"context_line":"    command \u003d\u003e \"timeout 10m /opt/stack/tripleo-ci/scripts/mirror-server/promote.sh master current-tripleo tripleo-dlrn-promote periodic-tripleo-ci-centos-7-ovb-ha-oooq periodic-tripleo-ci-centos-7-ovb-updates \u0026\u003e/var/log/last_master_promotion.log\","},{"line_number":57,"context_line":"    minute  \u003d\u003e \"40\""},{"line_number":58,"context_line":"}"},{"line_number":59,"context_line":""}],"source_content_type":"text/x-puppet","patch_set":27,"id":"df140735_7310e400","line":56,"updated":"2017-06-05 22:34:40.000000000","message":"My understanding was that the multinode scenario jobs were to be added to the promotion criteria.  Can someone please update me on why the multinode jobs are not listed here for master?\n\nThank you","commit_id":"1c76682d22f122955746a01f250ab74fac06965b"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"580ca859d42a5e5c549c7872493067703cd7a81f","unresolved":false,"context_lines":[{"line_number":53,"context_line":"}"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"cron {\"promote-master\":"},{"line_number":56,"context_line":"    command \u003d\u003e \"timeout 10m /opt/stack/tripleo-ci/scripts/mirror-server/promote.sh master current-tripleo tripleo-dlrn-promote periodic-tripleo-ci-centos-7-ovb-ha-oooq periodic-tripleo-ci-centos-7-ovb-updates \u0026\u003e/var/log/last_master_promotion.log\","},{"line_number":57,"context_line":"    minute  \u003d\u003e \"40\""},{"line_number":58,"context_line":"}"},{"line_number":59,"context_line":""}],"source_content_type":"text/x-puppet","patch_set":27,"id":"df140735_f6fbc2ba","line":56,"in_reply_to":"df140735_7310e400","updated":"2017-06-05 23:31:23.000000000","message":"It\u0027s not ready yet. I track this task in trello","commit_id":"1c76682d22f122955746a01f250ab74fac06965b"}],"toci-quickstart/config/testenv/ovb.yml":[{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"568df6f16738779131dac525315ccec419c77968","unresolved":false,"context_lines":[{"line_number":23,"context_line":"# Images settings"},{"line_number":24,"context_line":"image_cache_dir: \"{{ working_dir }}/images-cache\""},{"line_number":25,"context_line":"image_cache_dir_cleanup: true"},{"line_number":26,"context_line":"# If you change this value, remember to change the image upload directory in main script"},{"line_number":27,"context_line":"images_working_dir: \"{{ working_dir }}\""},{"line_number":28,"context_line":"build_image_isolated: false"},{"line_number":29,"context_line":"build_undercloud: false"}],"source_content_type":"text/x-yaml","patch_set":27,"id":"df140735_b180d8f6","line":26,"range":{"start_line":26,"start_character":2,"end_line":26,"end_character":4},"updated":"2017-06-04 16:21:45.000000000","message":"I don\u0027t understand this comment. Can you please elaborate it more?","commit_id":"1c76682d22f122955746a01f250ab74fac06965b"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"869ebe3235ee68310c7b57c90b8dabe103fd0e07","unresolved":false,"context_lines":[{"line_number":23,"context_line":"# Images settings"},{"line_number":24,"context_line":"image_cache_dir: \"{{ working_dir }}/images-cache\""},{"line_number":25,"context_line":"image_cache_dir_cleanup: true"},{"line_number":26,"context_line":"# If you change this value, remember to change the image upload directory in main script"},{"line_number":27,"context_line":"images_working_dir: \"{{ working_dir }}\""},{"line_number":28,"context_line":"build_image_isolated: false"},{"line_number":29,"context_line":"build_undercloud: false"}],"source_content_type":"text/x-yaml","patch_set":27,"id":"df140735_e42991f2","line":26,"updated":"2017-06-07 10:25:20.000000000","message":"Rephrased","commit_id":"1c76682d22f122955746a01f250ab74fac06965b"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"3dfbce16a697ba5eb9756206ea1304e37ab5ab12","unresolved":false,"context_lines":[{"line_number":23,"context_line":"# Images settings"},{"line_number":24,"context_line":"image_cache_dir: \"{{ working_dir }}/images-cache\""},{"line_number":25,"context_line":"image_cache_dir_cleanup: true"},{"line_number":26,"context_line":"# If you change this value, remember to change the image upload directory in main script"},{"line_number":27,"context_line":"images_working_dir: \"{{ working_dir }}\""},{"line_number":28,"context_line":"build_image_isolated: false"},{"line_number":29,"context_line":"build_undercloud: false"}],"source_content_type":"text/x-yaml","patch_set":27,"id":"df140735_eae3c103","line":26,"updated":"2017-06-06 12:25:51.000000000","message":"this variable sets where we put our built images, in toci_gate_test-oooq.sh we need to pushd to this directory, and then upload from there. There is no automatic method to get this value in that script, so it has to be done manually. If for some reason we need to change image_working_dir, then we need to change the pushd ~ in toci_gate_test-oooq.sh to pushd $NEWIMAGEDIR","commit_id":"1c76682d22f122955746a01f250ab74fac06965b"}],"toci_gate_test-oooq.sh":[{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":14,"context_line":"    exec $TRIPLEO_ROOT/tripleo-ci/toci_gate_test-orig.sh"},{"line_number":15,"context_line":"fi"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"set -eux"},{"line_number":18,"context_line":"export PS4\u003d\u0027+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }\u0027"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"source $TRIPLEO_ROOT/tripleo-ci/scripts/oooq_common_functions.sh"}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_a19f1d64","line":17,"range":{"start_line":17,"start_character":0,"end_line":17,"end_character":8},"updated":"2017-05-25 19:23:30.000000000","message":"it\u0027s set in line 6","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"0f82994ac2ba57a092469fca961d6acf94e407d3","unresolved":false,"context_lines":[{"line_number":14,"context_line":"    exec $TRIPLEO_ROOT/tripleo-ci/toci_gate_test-orig.sh"},{"line_number":15,"context_line":"fi"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"set -eux"},{"line_number":18,"context_line":"export PS4\u003d\u0027+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }\u0027"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"source $TRIPLEO_ROOT/tripleo-ci/scripts/oooq_common_functions.sh"}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_1f94cbe7","line":17,"updated":"2017-05-26 14:10:43.000000000","message":"local test leftover","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":15,"context_line":"fi"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"set -eux"},{"line_number":18,"context_line":"export PS4\u003d\u0027+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }\u0027"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"source $TRIPLEO_ROOT/tripleo-ci/scripts/oooq_common_functions.sh"},{"line_number":21,"context_line":""}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_21930d5f","line":18,"range":{"start_line":18,"start_character":0,"end_line":18,"end_character":76},"updated":"2017-05-25 19:23:30.000000000","message":"it\u0027s set in line 8","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":49,"context_line":"rpm -q epel-release \u0026\u0026 sudo yum -y erase epel-release"},{"line_number":50,"context_line":"sudo rm -f /etc/yum.repos.d/epel*"},{"line_number":51,"context_line":"# sets mirror server"},{"line_number":52,"context_line":"export MIRRORSERVER\u003d${MIRRORIP-192.168.1.101}"},{"line_number":53,"context_line":"# Clean any cached yum metadata, it maybe stale"},{"line_number":54,"context_line":"sudo yum clean all"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_8f044580","line":52,"range":{"start_line":52,"start_character":0,"end_line":52,"end_character":45},"updated":"2017-05-25 19:23:30.000000000","message":"weird default, considering that we have mirror server in 192.168.103.253 and it\u0027s define so in all rh.env files. I know that is the same in old script, but wonder if we need to keep it here.\n\nWhy not to define it in top of file, where all envs are located?","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"0f82994ac2ba57a092469fca961d6acf94e407d3","unresolved":false,"context_lines":[{"line_number":49,"context_line":"rpm -q epel-release \u0026\u0026 sudo yum -y erase epel-release"},{"line_number":50,"context_line":"sudo rm -f /etc/yum.repos.d/epel*"},{"line_number":51,"context_line":"# sets mirror server"},{"line_number":52,"context_line":"export MIRRORSERVER\u003d${MIRRORIP-192.168.1.101}"},{"line_number":53,"context_line":"# Clean any cached yum metadata, it maybe stale"},{"line_number":54,"context_line":"sudo yum clean all"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_ff98f71b","line":52,"updated":"2017-05-26 14:10:43.000000000","message":"yes I don\u0027t know what\u0027s that default IP, looks like the same as the proxy.  Probably useful for test not run in either rh1 or rh1. I\u0027ll remove it and just use the MIRRORIP variable","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":104,"context_line":"fi"},{"line_number":105,"context_line":"export NODES_ARGS\u003d\"\""},{"line_number":106,"context_line":"export COLLECT_CONF\u003d\"$TRIPLEO_ROOT/tripleo-ci/toci-quickstart/config/collect-logs.yml\""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"# Assemble quickstart configuration based on job type keywords"},{"line_number":110,"context_line":"for JOB_TYPE_PART in $(sed \u0027s/-/ /g\u0027 \u003c\u003c\u003c \"${TOCI_JOBTYPE:-}\") ; do"}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_afba6907","line":107,"range":{"start_line":107,"start_character":0,"end_line":107,"end_character":0},"updated":"2017-05-25 19:23:30.000000000","message":"blank line","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":244,"context_line":"    ./toci_quickstart.sh"},{"line_number":245,"context_line":"fi"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"export http_proxy\u003d"},{"line_number":248,"context_line":"# TODO(gcerami) expand this list"},{"line_number":249,"context_line":"JOBS_ALLOW_PROMOTE\u003d(periodic-ovb-3ctlr_1comp-featureset002)"},{"line_number":250,"context_line":"# TODO(gcerami) move the remaining condition in can_promote function ?"}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_af71490f","line":247,"range":{"start_line":247,"start_character":0,"end_line":247,"end_character":18},"updated":"2017-05-25 19:23:30.000000000","message":"I\u0027m fine with setting it here, although I don\u0027t think we set proxy somewhere, which is actually a bug and may be a cause for our timeouts.","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"0f82994ac2ba57a092469fca961d6acf94e407d3","unresolved":false,"context_lines":[{"line_number":244,"context_line":"    ./toci_quickstart.sh"},{"line_number":245,"context_line":"fi"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"export http_proxy\u003d"},{"line_number":248,"context_line":"# TODO(gcerami) expand this list"},{"line_number":249,"context_line":"JOBS_ALLOW_PROMOTE\u003d(periodic-ovb-3ctlr_1comp-featureset002)"},{"line_number":250,"context_line":"# TODO(gcerami) move the remaining condition in can_promote function ?"}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_df9d330b","line":247,"updated":"2017-05-26 14:10:43.000000000","message":"We do set the proxy, again in rh{1,2}.env files. Without this, the curl command will try to upload images through it, failing. Be sure to check if it\u0027s not really used. I think\nit\u0027s used as a caching proxy to speed up package dowloading. Not sure though","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":249,"context_line":"JOBS_ALLOW_PROMOTE\u003d(periodic-ovb-3ctlr_1comp-featureset002)"},{"line_number":250,"context_line":"# TODO(gcerami) move the remaining condition in can_promote function ?"},{"line_number":251,"context_line":"#if item_in_array $TOCI_JOBTYPE ${JOBS_ALLOW_PROMOTE[@]} \u0026\u0026 can_promote; then"},{"line_number":252,"context_line":"if item_in_array $TOCI_JOBTYPE ${JOBS_ALLOW_PROMOTE[@]}; then"},{"line_number":253,"context_line":"    UPLOAD_FOLDER\u003dbuilds${STABLE_RELEASE:+-$STABLE_RELEASE}"},{"line_number":254,"context_line":"    TRUNKREPOUSED\u003d$(grep -Eo \"[0-9a-z]{2}/[0-9a-z]{2}/[0-9a-z]{40}_[0-9a-z]+\" /etc/yum.repos.d/delorean.repo)"},{"line_number":255,"context_line":"    # only allow the first item on the list to upload an image"}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_c11691f2","line":252,"range":{"start_line":252,"start_character":1,"end_line":252,"end_character":30},"updated":"2017-05-25 19:23:30.000000000","message":"I think it\u0027s too much complicated this item_in_array.\nWhy not to use string inclusion checking?\n\n  JOBS_ALLOW_PROMOTE\u003d\"periodic-ovb-3ctlr_1comp-featureset002 my_other_job\"\n  if [[ \" $JOBS_ALLOW_PROMOTE \" \u003d~ \" $TOCI_JOBTYPE \" ]]; then\n    do stuff\n  fi\n\nAnd without complex bash arrays and functions.","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"0f82994ac2ba57a092469fca961d6acf94e407d3","unresolved":false,"context_lines":[{"line_number":249,"context_line":"JOBS_ALLOW_PROMOTE\u003d(periodic-ovb-3ctlr_1comp-featureset002)"},{"line_number":250,"context_line":"# TODO(gcerami) move the remaining condition in can_promote function ?"},{"line_number":251,"context_line":"#if item_in_array $TOCI_JOBTYPE ${JOBS_ALLOW_PROMOTE[@]} \u0026\u0026 can_promote; then"},{"line_number":252,"context_line":"if item_in_array $TOCI_JOBTYPE ${JOBS_ALLOW_PROMOTE[@]}; then"},{"line_number":253,"context_line":"    UPLOAD_FOLDER\u003dbuilds${STABLE_RELEASE:+-$STABLE_RELEASE}"},{"line_number":254,"context_line":"    TRUNKREPOUSED\u003d$(grep -Eo \"[0-9a-z]{2}/[0-9a-z]{2}/[0-9a-z]{40}_[0-9a-z]+\" /etc/yum.repos.d/delorean.repo)"},{"line_number":255,"context_line":"    # only allow the first item on the list to upload an image"}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_bfa27f4a","line":252,"updated":"2017-05-26 14:10:43.000000000","message":"can_promote missing is test leftover, can_promote was blocking my tests.\nThe array was actually needed because I needed to extract the first element to upload a single image, and only from a selected job. The snippet you\u0027re showing works only if  JOBS_ALLOW_PROMOTE is a string, which is not, being an array.\nI\u0027m unsure what to do here. Uploading only the image from the first job that finishes seems arbitrary. I\u0027d like to know which job is responsible of uploading the image.","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":249,"context_line":"JOBS_ALLOW_PROMOTE\u003d(periodic-ovb-3ctlr_1comp-featureset002)"},{"line_number":250,"context_line":"# TODO(gcerami) move the remaining condition in can_promote function ?"},{"line_number":251,"context_line":"#if item_in_array $TOCI_JOBTYPE ${JOBS_ALLOW_PROMOTE[@]} \u0026\u0026 can_promote; then"},{"line_number":252,"context_line":"if item_in_array $TOCI_JOBTYPE ${JOBS_ALLOW_PROMOTE[@]}; then"},{"line_number":253,"context_line":"    UPLOAD_FOLDER\u003dbuilds${STABLE_RELEASE:+-$STABLE_RELEASE}"},{"line_number":254,"context_line":"    TRUNKREPOUSED\u003d$(grep -Eo \"[0-9a-z]{2}/[0-9a-z]{2}/[0-9a-z]{40}_[0-9a-z]+\" /etc/yum.repos.d/delorean.repo)"},{"line_number":255,"context_line":"    # only allow the first item on the list to upload an image"}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_01c12981","line":252,"range":{"start_line":252,"start_character":57,"end_line":252,"end_character":61},"updated":"2017-05-25 19:23:30.000000000","message":"so where is \"can_promote\" condition?","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"dca13bbd8cd9cd8661a7463aa464b818d5a3423e","unresolved":false,"context_lines":[{"line_number":249,"context_line":"JOBS_ALLOW_PROMOTE\u003d(periodic-ovb-3ctlr_1comp-featureset002)"},{"line_number":250,"context_line":"# TODO(gcerami) move the remaining condition in can_promote function ?"},{"line_number":251,"context_line":"#if item_in_array $TOCI_JOBTYPE ${JOBS_ALLOW_PROMOTE[@]} \u0026\u0026 can_promote; then"},{"line_number":252,"context_line":"if item_in_array $TOCI_JOBTYPE ${JOBS_ALLOW_PROMOTE[@]}; then"},{"line_number":253,"context_line":"    UPLOAD_FOLDER\u003dbuilds${STABLE_RELEASE:+-$STABLE_RELEASE}"},{"line_number":254,"context_line":"    TRUNKREPOUSED\u003d$(grep -Eo \"[0-9a-z]{2}/[0-9a-z]{2}/[0-9a-z]{40}_[0-9a-z]+\" /etc/yum.repos.d/delorean.repo)"},{"line_number":255,"context_line":"    # only allow the first item on the list to upload an image"}],"source_content_type":"text/x-sh","patch_set":26,"id":"df140735_51717c43","line":252,"in_reply_to":"ff0f0b1f_bfa27f4a","updated":"2017-06-04 16:21:57.000000000","message":"I\u0027m not sure it makes sense to limit image uploading to a specific job. What is it helpful for? What problem does it solve?","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":253,"context_line":"    UPLOAD_FOLDER\u003dbuilds${STABLE_RELEASE:+-$STABLE_RELEASE}"},{"line_number":254,"context_line":"    TRUNKREPOUSED\u003d$(grep -Eo \"[0-9a-z]{2}/[0-9a-z]{2}/[0-9a-z]{40}_[0-9a-z]+\" /etc/yum.repos.d/delorean.repo)"},{"line_number":255,"context_line":"    # only allow the first item on the list to upload an image"},{"line_number":256,"context_line":"    if [[ $TOCI_JOBTYPE \u003d\u003d ${JOBS_ALLOW_PROMOTE[0]} ]]; then"},{"line_number":257,"context_line":"        # FIXME(gcerami) This is weak hardcoded way to find images"},{"line_number":258,"context_line":"        pushd /home/jenkins"},{"line_number":259,"context_line":"        ls *.tar"}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_415a812a","line":256,"range":{"start_line":256,"start_character":3,"end_line":256,"end_character":60},"updated":"2017-05-25 19:23:30.000000000","message":"if you want to limit only one job to upload the image, so it\u0027s not necessary I think, it will be so anyway. In upload.cgi it\u0027s checked if we have such image or not, if we have, we don\u0027t upload it: https://github.com/openstack-infra/tripleo-ci/blob/482ccc8ffa824afdeea4600c6da48f17a285da06/scripts/mirror-server/upload.cgi#L21-L21","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":255,"context_line":"    # only allow the first item on the list to upload an image"},{"line_number":256,"context_line":"    if [[ $TOCI_JOBTYPE \u003d\u003d ${JOBS_ALLOW_PROMOTE[0]} ]]; then"},{"line_number":257,"context_line":"        # FIXME(gcerami) This is weak hardcoded way to find images"},{"line_number":258,"context_line":"        pushd /home/jenkins"},{"line_number":259,"context_line":"        ls *.tar"},{"line_number":260,"context_line":"        ls *.md5"},{"line_number":261,"context_line":"        # FIXME: at the moment we don\u0027t allow oooq jobs to upload images."}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_01d8097d","line":258,"range":{"start_line":258,"start_character":7,"end_line":258,"end_character":27},"updated":"2017-05-25 19:23:30.000000000","message":"No \"jenkins\" please. ls ~, ls $HOME","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"0f82994ac2ba57a092469fca961d6acf94e407d3","unresolved":false,"context_lines":[{"line_number":255,"context_line":"    # only allow the first item on the list to upload an image"},{"line_number":256,"context_line":"    if [[ $TOCI_JOBTYPE \u003d\u003d ${JOBS_ALLOW_PROMOTE[0]} ]]; then"},{"line_number":257,"context_line":"        # FIXME(gcerami) This is weak hardcoded way to find images"},{"line_number":258,"context_line":"        pushd /home/jenkins"},{"line_number":259,"context_line":"        ls *.tar"},{"line_number":260,"context_line":"        ls *.md5"},{"line_number":261,"context_line":"        # FIXME: at the moment we don\u0027t allow oooq jobs to upload images."}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_9f87bbb7","line":258,"updated":"2017-05-26 14:10:43.000000000","message":"Ok, but it\u0027s weak method anyway, there\u0027s no easy way to extract the images_working_dir from our configration file, so we\u0027ll always have to remember to change this if we change the value in ovb common settings.","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"dca13bbd8cd9cd8661a7463aa464b818d5a3423e","unresolved":false,"context_lines":[{"line_number":255,"context_line":"    # only allow the first item on the list to upload an image"},{"line_number":256,"context_line":"    if [[ $TOCI_JOBTYPE \u003d\u003d ${JOBS_ALLOW_PROMOTE[0]} ]]; then"},{"line_number":257,"context_line":"        # FIXME(gcerami) This is weak hardcoded way to find images"},{"line_number":258,"context_line":"        pushd /home/jenkins"},{"line_number":259,"context_line":"        ls *.tar"},{"line_number":260,"context_line":"        ls *.md5"},{"line_number":261,"context_line":"        # FIXME: at the moment we don\u0027t allow oooq jobs to upload images."}],"source_content_type":"text/x-sh","patch_set":26,"id":"df140735_f1977039","line":258,"in_reply_to":"ff0f0b1f_9f87bbb7","updated":"2017-06-04 16:21:57.000000000","message":"Images from $HOME are used in a lot of places, not only from uploading code. So we\u0027ll know immediately if anyone changed it, nothing will work.","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":256,"context_line":"    if [[ $TOCI_JOBTYPE \u003d\u003d ${JOBS_ALLOW_PROMOTE[0]} ]]; then"},{"line_number":257,"context_line":"        # FIXME(gcerami) This is weak hardcoded way to find images"},{"line_number":258,"context_line":"        pushd /home/jenkins"},{"line_number":259,"context_line":"        ls *.tar"},{"line_number":260,"context_line":"        ls *.md5"},{"line_number":261,"context_line":"        # FIXME: at the moment we don\u0027t allow oooq jobs to upload images."},{"line_number":262,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@ironic-python-agent.tar;filename\u003dipa_images.tar\""},{"line_number":263,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@overcloud-full.tar;filename\u003dovercloud-full.tar\""}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_21c42d92","line":260,"range":{"start_line":259,"start_character":8,"end_line":260,"end_character":16},"updated":"2017-05-25 19:23:30.000000000","message":"I don\u0027t understand, what is it helpful for?","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"0f82994ac2ba57a092469fca961d6acf94e407d3","unresolved":false,"context_lines":[{"line_number":257,"context_line":"        # FIXME(gcerami) This is weak hardcoded way to find images"},{"line_number":258,"context_line":"        pushd /home/jenkins"},{"line_number":259,"context_line":"        ls *.tar"},{"line_number":260,"context_line":"        ls *.md5"},{"line_number":261,"context_line":"        # FIXME: at the moment we don\u0027t allow oooq jobs to upload images."},{"line_number":262,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@ironic-python-agent.tar;filename\u003dipa_images.tar\""},{"line_number":263,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@overcloud-full.tar;filename\u003dovercloud-full.tar\""}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_7f84e7b1","line":260,"updated":"2017-05-26 14:10:43.000000000","message":"test leftover. Wasn\u0027t sure where the images were stored","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":259,"context_line":"        ls *.tar"},{"line_number":260,"context_line":"        ls *.md5"},{"line_number":261,"context_line":"        # FIXME: at the moment we don\u0027t allow oooq jobs to upload images."},{"line_number":262,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@ironic-python-agent.tar;filename\u003dipa_images.tar\""},{"line_number":263,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@overcloud-full.tar;filename\u003dovercloud-full.tar\""},{"line_number":264,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@ironic-python-agent.tar.md5;filename\u003dipa_images.tar.md5\""},{"line_number":265,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@overcloud-full.tar.md5;filename\u003dovercloud-full.tar.md5\""}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_21ad4dea","line":262,"range":{"start_line":262,"start_character":126,"end_line":262,"end_character":174},"updated":"2017-05-25 19:23:30.000000000","message":"I\u0027m fine with this as temporary hack, but it should be resolved in quickstart, like parametrizing the image name or whatever. Would you mind please submit a bug?","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"0f82994ac2ba57a092469fca961d6acf94e407d3","unresolved":false,"context_lines":[{"line_number":259,"context_line":"        ls *.tar"},{"line_number":260,"context_line":"        ls *.md5"},{"line_number":261,"context_line":"        # FIXME: at the moment we don\u0027t allow oooq jobs to upload images."},{"line_number":262,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@ironic-python-agent.tar;filename\u003dipa_images.tar\""},{"line_number":263,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@overcloud-full.tar;filename\u003dovercloud-full.tar\""},{"line_number":264,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@ironic-python-agent.tar.md5;filename\u003dipa_images.tar.md5\""},{"line_number":265,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@overcloud-full.tar.md5;filename\u003dovercloud-full.tar.md5\""}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_5f9123f1","line":262,"updated":"2017-05-26 14:10:43.000000000","message":"looks simple enpugh here, I\u0027ll mark it as wishlist.","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"dca13bbd8cd9cd8661a7463aa464b818d5a3423e","unresolved":false,"context_lines":[{"line_number":259,"context_line":"        ls *.tar"},{"line_number":260,"context_line":"        ls *.md5"},{"line_number":261,"context_line":"        # FIXME: at the moment we don\u0027t allow oooq jobs to upload images."},{"line_number":262,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@ironic-python-agent.tar;filename\u003dipa_images.tar\""},{"line_number":263,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@overcloud-full.tar;filename\u003dovercloud-full.tar\""},{"line_number":264,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@ironic-python-agent.tar.md5;filename\u003dipa_images.tar.md5\""},{"line_number":265,"context_line":"        echo curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"upload\u003d@overcloud-full.tar.md5;filename\u003dovercloud-full.tar.md5\""}],"source_content_type":"text/x-sh","patch_set":26,"id":"df140735_b1a578a4","line":262,"in_reply_to":"ff0f0b1f_5f9123f1","updated":"2017-06-04 16:21:57.000000000","message":"I can cause problem with further integration with quickstart, libvirt use cases, reusing images and who knows where. I\u0027m not sure it\u0027s a \"wish\", seems like a bug.","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"0f82994ac2ba57a092469fca961d6acf94e407d3","unresolved":false,"context_lines":[{"line_number":266,"context_line":"        popd"},{"line_number":267,"context_line":"    fi"},{"line_number":268,"context_line":"    # if everything is ok, mark job as success"},{"line_number":269,"context_line":"    curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"$JOB_NAME\u003dSUCCESS\""},{"line_number":270,"context_line":"fi"},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"echo \"Run completed\""}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_3f8e6fd0","line":269,"updated":"2017-05-26 14:10:43.000000000","message":"This may prove difficult, TOCI_JOBTYE doesn\u0027t have any indication of release for example, and will probably never do. We have to choose what do we want to use as key here","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"f00c09def71c308a3ed1697ddf1a34b2a3b88f11","unresolved":false,"context_lines":[{"line_number":266,"context_line":"        popd"},{"line_number":267,"context_line":"    fi"},{"line_number":268,"context_line":"    # if everything is ok, mark job as success"},{"line_number":269,"context_line":"    curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"$JOB_NAME\u003dSUCCESS\""},{"line_number":270,"context_line":"fi"},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"echo \"Run completed\""}],"source_content_type":"text/x-sh","patch_set":26,"id":"ff0f0b1f_a1ba7dde","line":269,"range":{"start_line":269,"start_character":111,"end_line":269,"end_character":119},"updated":"2017-05-25 19:23:30.000000000","message":"in the future I\u0027d like to change it to $TOCI_JOBTYPE, so we don\u0027t need to calculate this job name. But let\u0027s leave it so meanwhile.","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"dca13bbd8cd9cd8661a7463aa464b818d5a3423e","unresolved":false,"context_lines":[{"line_number":266,"context_line":"        popd"},{"line_number":267,"context_line":"    fi"},{"line_number":268,"context_line":"    # if everything is ok, mark job as success"},{"line_number":269,"context_line":"    curl http://$MIRRORSERVER/cgi-bin/upload.cgi  -F \"repohash\u003d$TRUNKREPOUSED\" -F \"folder\u003d$UPLOAD_FOLDER\" -F \"$JOB_NAME\u003dSUCCESS\""},{"line_number":270,"context_line":"fi"},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"echo \"Run completed\""}],"source_content_type":"text/x-sh","patch_set":26,"id":"df140735_31bba8c5","line":269,"in_reply_to":"ff0f0b1f_3f8e6fd0","updated":"2017-06-04 16:21:57.000000000","message":"We can use \"${TOCI_JOBTYPE}-${STABLE_RELEASE:-\u0027master\u0027}\"","commit_id":"b969ad534c0007fc6ea64ae2b5705a0f4c4fdd83"},{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"568df6f16738779131dac525315ccec419c77968","unresolved":false,"context_lines":[{"line_number":247,"context_line":"# TODO(gcerami) move the remaining condition in can_promote function ?"},{"line_number":248,"context_line":"if item_in_array $TOCI_JOBTYPE ${JOBS_ALLOW_PROMOTE[@]} \u0026\u0026 can_promote; then"},{"line_number":249,"context_line":"    UPLOAD_FOLDER\u003dbuilds${STABLE_RELEASE:+-$STABLE_RELEASE}"},{"line_number":250,"context_line":"    TRUNKREPOUSED\u003d$(grep -Eo \"[0-9a-z]{2}/[0-9a-z]{2}/[0-9a-z]{40}_[0-9a-z]+\" /etc/yum.repos.d/delorean.repo)"},{"line_number":251,"context_line":"    # only allow the first item on the list to upload an image"},{"line_number":252,"context_line":"    if [[ $TOCI_JOBTYPE \u003d\u003d ${JOBS_ALLOW_PROMOTE[0]} ]]; then"},{"line_number":253,"context_line":"        # There\u0027s no easy way to extract the information on where the images are built, so this value"}],"source_content_type":"text/x-sh","patch_set":27,"id":"df140735_318de831","line":250,"range":{"start_line":250,"start_character":18,"end_line":250,"end_character":109},"updated":"2017-06-04 16:21:45.000000000","message":"I would add here \" | head -1\" in case the trunk hash appears more than once in the file. It\u0027s possible.","commit_id":"1c76682d22f122955746a01f250ab74fac06965b"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"869ebe3235ee68310c7b57c90b8dabe103fd0e07","unresolved":false,"context_lines":[{"line_number":247,"context_line":"# TODO(gcerami) move the remaining condition in can_promote function ?"},{"line_number":248,"context_line":"if item_in_array $TOCI_JOBTYPE ${JOBS_ALLOW_PROMOTE[@]} \u0026\u0026 can_promote; then"},{"line_number":249,"context_line":"    UPLOAD_FOLDER\u003dbuilds${STABLE_RELEASE:+-$STABLE_RELEASE}"},{"line_number":250,"context_line":"    TRUNKREPOUSED\u003d$(grep -Eo \"[0-9a-z]{2}/[0-9a-z]{2}/[0-9a-z]{40}_[0-9a-z]+\" /etc/yum.repos.d/delorean.repo)"},{"line_number":251,"context_line":"    # only allow the first item on the list to upload an image"},{"line_number":252,"context_line":"    if [[ $TOCI_JOBTYPE \u003d\u003d ${JOBS_ALLOW_PROMOTE[0]} ]]; then"},{"line_number":253,"context_line":"        # There\u0027s no easy way to extract the information on where the images are built, so this value"}],"source_content_type":"text/x-sh","patch_set":27,"id":"df140735_c42e8df9","line":250,"updated":"2017-06-07 10:25:20.000000000","message":"added match limit directly in grep command","commit_id":"1c76682d22f122955746a01f250ab74fac06965b"}]}
