Interface: BitbucketOptions
Bitbucket options.
https://bitbucket.org/
Define BITBUCKET_TOKEN environment variable.
For converting an app password to a usable token, you can utilize this
convertAppPassword(owner: string, appPassword: string) {
const base64encodedData = Buffer.from(`${owner}:${appPassword.trim()}`).toString("base64")
return `Basic ${base64encodedData}`
}
Extends
Properties
channel?
readonlyoptionalchannel?:string|null
The channel.
Default
latest
owner
readonlyowner:string
Repository owner
provider
readonlyprovider:"bitbucket"
The provider. Must be bitbucket.
Overrides
publishAutoUpdate?
readonlyoptionalpublishAutoUpdate?:boolean
Whether to publish auto update info files.
Auto update relies only on the first provider in the list (you can specify several publishers). Thus, probably, there`s no need to upload the metadata files for the other configured providers. But by default will be uploaded.
Default
true
Inherited from
PublishConfiguration.publishAutoUpdate
requestHeaders?
readonlyoptionalrequestHeaders?:OutgoingHttpHeaders
Any custom request headers
Inherited from
PublishConfiguration.requestHeaders
slug
readonlyslug:string
Repository slug/name
timeout?
readonlyoptionaltimeout?:number|null
Request timeout in milliseconds. (Default is 2 minutes; O is ignored)
Default
120000
Inherited from
token?
readonlyoptionaltoken?:string|null
The app password to support auto-update from private bitbucket repositories.
username?
readonlyoptionalusername?:string|null
The user name to support auto-update from private bitbucket repositories.