jenkinsci / fabric-beta-publisher-plugin

DEPRECATED: A Jenkins plugin that lets you publish Android apps to Fabric Beta
MIT License
24 stars 17 forks source link

Make Pipeline support prettier #22

Closed egor-n closed 5 years ago

egor-n commented 7 years ago

@Symbol("fabric") should work just fine or override String getFunctionName() and return "fabric" there.

PabloThiele commented 7 years ago

Could you please at least add how to proceed to use the plugin using the pipeline today? After installed (version 1.8) I'm not able to see any snippet option of find some on the readme. Could you please add on the readme a happy path example using pipeline? Thanks.

PS: I'm able to see and use the plugin on a Freestyle project, but I need the pipeline usage on a success post step.

egor-n commented 7 years ago

@PabloThiele basic usage looks like this:

step([
    $class: 'FabricBetaPublisher',
    apiKey: "your_api_key",
    apkPath: "app/build/outputs/apk/*.apk",
    buildSecret: "your_build_secret",
    notifyTestersType: 'NOTIFY_TESTERS_GROUP',
    releaseNotesType: 'RELEASE_NOTES_FILE',
    releaseNotesFile: "your_release_notes_file.txt",
    testersGroup: "your_testers_group",
    organization: "your_organization",
    useAntStyleInclude: true
])
mtrakal commented 6 years ago

For other people:

apiKey = buildSecret from fabric.properties files buildSecret = properties from AndroidManifest.xml file (io.fabric.ApiKey) notifyTestersType = can be NOTIFY_TESTERS_TYPE_EMAILS or NOTIFY_TESTERS_GROUP releaseNotesType = RELEASE_NOTES_NONE, RELEASE_NOTES_PARAMETER(require: releaseNotesParameter), RELEASE_NOTES_FROM_CHANGELOG, RELEASE_NOTES_FILE (require: releaseNotesFile)

mtrakal commented 6 years ago

in https://github.com/jenkinsci/fabric-beta-publisher-plugin/issues/22#issuecomment-325104548 is wrong releaseNotesType: 'RELEASE_NOTES_TYPE_FILE', it should be: releaseNotesType: 'RELEASE_NOTES_FILE',

egor-n commented 6 years ago

@mtrakal thank you! I have edited my comment.