File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed
Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change 22
33# To be run from the repository root directory
44
5- set -ex
5+ # if [[ "$TRAVIS_EVENT_TYPE" != "cron" ]]; then
6+ # echo "Not a cron build; not publishing"
7+ # exit 1
8+ # fi
69
7- if [[ " $TRAVIS_EVENT_TYPE " != " cron" ]]; then
8- echo " Not a cron build; not publishing"
9- exit 1
10- fi
10+ set -ex
1111
12- cp " dev/*.vsix" .
12+ cp -v dev/* .vsix .
1313
1414git_repo_url=" https://github.ibm.com/dev-ex/microclimate-vscode"
1515build_info_file=" build_info.txt"
16-
17-
1816artifact_name=" $( basename * .vsix) "
19- echo " The build artifact is $artifact_name "
17+ build_date=" $( date +' %F_%H-%M_%Z' ) "
18+
19+ # OSS Remove Start
2020
21- build_date=" $( date +' %F %H:%M %Z' ) "
2221commit_info=" $( git log master -3 --pretty=' %h by %an - %s' ) "
23- echo " $commit_info "
2422
2523# Artifactory upload - Remove this at OSS time
2624printf " $build_date \n$commit_info " > " $build_info_file "
2725curl -u " $artifactory_username :$artifactory_apikey " " $artifactory_url /$artifact_name " -T " $artifact_name " -X PUT
2826curl -u " $artifactory_username :$artifactory_apikey " " $artifactory_url /$build_info_file " -T " $build_info_file " -X PUT
2927
30- echo " dumb stuff" ;
31- ls -l /usr/bin/python*
32- ls -l /bin/python*
33- echo " done dumb stuff" ;
28+ # OSS Remove End
3429
3530# https://developer.github.com/v3/repos/releases/#create-a-release
3631gh_payload_builder=" import json; payload={};
@@ -39,6 +34,7 @@ gh_payload_builder="import json; payload={};
3934 payload['prerelease'] = true;
4035 print json.dumps(payload);
4136 "
42- gh_tag_payload=" $( python2 -c $gh_payload_builder ) "
37+
38+ gh_tag_payload=" $( python2 -c \s " $gh_payload_builder \" )"
4339echo " $gh_tag_payload "
4440
You can’t perform that action at this time.
0 commit comments