[TIMOB-20442] GitHub: Release tags marked as pre-release since 5.0.2.GA
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | Low |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-03-21T02:18:01.000+0000 |
| Affected Version/s | Release 5.0.2, Release 5.2.0 |
| Fix Version/s | Release 5.3.0 |
| Components | Tooling |
| Labels | n/a |
| Reporter | Fokke Zandbergen |
| Assignee | Chee Kiat Ng |
| Created | 2016-02-23T07:51:39.000+0000 |
| Updated | 2016-05-12T17:14:10.000+0000 |
Description
The releases on GitHub are marked as pre-release since 5.0.2.GA, which makes 5.0.1.GA still marked as latest release:
https://github.com/appcelerator/titanium_mobile/releases
This just requires a fix in Jenkins to identify if it's a pre-release or release, and release accordingly.
Added a if else statement in shell script in jenkins:
if [ $TAG = "GA" ] then RELEASEFLAG="release" else RELEASEFLAG="prerelease" fi curl -u $APIKEY --header "Accept: application/vnd.github.manifold-preview" --data "{\"tag_name\":\"$TAGNAME\",\"target_commitish\":\"$GITHASH\",\"$RELEASEFLAG\": true}" "https://api.github.com/repos/appcelerator/titanium_mobile/releases"Closing as implemented.