Zulip

Posts a message to a Zulip server. You must procure an account and apiKey to use this announcer.

Legend:

  • required

  • optional

  • may use environment variable

  • accepts Name Templates

  • YAML

  • TOML

  • JSON

  • Maven

  • Gradle

announce:
  # 
  zulip:

    # Enable or disable this announcer.
    # Valid values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
    # Defaults to `NEVER`.
    # 
    active: ALWAYS

    # Defines the connection timeout in seconds.
    # Defaults to `20`.
    # 
    connectTimeout: 20

    # Defines the read timeout in seconds.
    # Defaults to `60`.
    # 
    readTimeout: 60

    # The Zulip account (typically an email address) to use.
    # 
    account: announce-bot@my.zulipchat.com

    # The Zulip server endpoint.
    # 
    apiHost: https://my.zulipchat.com/api/v1

    # The ApiKey associated with the given account.
    # If left unspecified, the `JRELEASER_ZULIP_API_KEY`
    # environment variable must be defined.
    #  
    apiKey: __DO_NOT_SET_HERE__

    # The channel where the message will be sent to
    # Defaults to `announce`.
    # 
    channel: announce

    # The messages' subject.
    # Review the available Name Templates.
    #  
    subject: '{{projectNameCapitalized}} {{projectVersion}} released!'

    # The announcement message.
    # Review the available Name Templates.
    #  
    message: ' {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}'

    # Path to a template file that contains the message.
    # Review the available Name Templates.
    # Defaults to `src/jreleaser/templates/zulip.tpl`.
    # 
    messageTemplate: path/to/template/zulip.tpl

    # Additional properties used when evaluating templates.
    #  
    extraProperties:
      # Key will be capitalized and prefixed with `zulip`, i.e, `zulipFoo`.
      foo: bar
# 
[announce.zulip]

  # Enable or disable this announcer.
  # Valid values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
  # Defaults to `NEVER`.
  # 
  active = "ALWAYS"

  # Defines the connection timeout in seconds.
  # Defaults to `20`.
  # 
  connectTimeout = 20

  # Defines the read timeout in seconds.
  # Defaults to `60`.
  # 
  readTimeout = 60

  # The Zulip account (typically an email address) to use.
  # 
  account = "announce-bot@my.zulipchat.com"

  # The Zulip server endpoint.
  # 
  apiHost = "https://my.zulipchat.com/api/v1"

  # The ApiKey associated with the given account.
  # If left unspecified, the `JRELEASER_ZULIP_API_KEY`
  # environment variable must be defined.
  #  
  apiKey = "__DO_NOT_SET_HERE__"

  # The channel where the message will be sent to
  # Defaults to `announce`.
  # 
  channel = "announce"

  # The messages' subject.
  # Review the available Name Templates.
  #  
  subject = "{{projectNameCapitalized}} {{projectVersion}} released!"

  # The announcement message.
  # Review the available Name Templates.
  #  
  message = " {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}"

  # Path to a template file that contains the message.
  # Review the available Name Templates.
  # Defaults to `src/jreleaser/templates/zulip.tpl`.
  # 
  messageTemplate = "path/to/template/zulip.tpl"

  # Additional properties used when evaluating templates.
  #  
  extraProperties.foo = "bar"
  # Key will be capitalized and prefixed with `zulip`, i.e, `zulipFoo`.
{
  "announce": {
    // 
    "zulip": {

      // Enable or disable this announcer.
      // Valid values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
      // Defaults to `NEVER`.
      // 
      "active": "ALWAYS",

      // Defines the connection timeout in seconds.
      // Defaults to `20`.
      // 
      "connectTimeout": 20,

      // Defines the read timeout in seconds.
      // Defaults to `60`.
      // 
      "readTimeout": 60,

      // The Zulip account (typically an email address) to use.
      // 
      "account": "announce-bot@my.zulipchat.com",

      // The Zulip server endpoint.
      // 
      "apiHost": "https://my.zulipchat.com/api/v1",

      // The ApiKey associated with the given account.
      // If left unspecified, the `JRELEASER_ZULIP_API_KEY`
      // environment variable must be defined.
      //  
      "apiKey": "__DO_NOT_SET_HERE__",

      // The channel where the message will be sent to
      // Defaults to `announce`.
      // 
      "channel": "announce",

      // The messages' subject.
      // Review the available Name Templates.
      // 
      "subject": "{{projectNameCapitalized}} {{projectVersion}} released!",

      // The announcement message.
      // Review the available Name Templates.
      //  
      "message": " {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}",

      // Path to a template file that contains the message.
      // Review the available Name Templates.
      // Defaults to `src/jreleaser/templates/zulip.tpl`.
      // 
      "messageTemplate": "path/to/template/zulip.tpl",

      // Additional properties used when evaluating templates.
      //  
      "extraProperties": {
        // Key will be capitalized and prefixed with `zulip`, i.e, `zulipFoo`.
        "foo": "bar"
      }
    }
  }
}
<jreleaser>
  <!--
    
  -->
  <announce>
    <!--
      
    -->
    <zulip>

      <!--
        Enable or disable this announcer.
        Valid values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
        Defaults to `NEVER`.
        
      -->
      <active>ALWAYS</active>

      <!--
        Defines the connection timeout in seconds.
        Defaults to `20`.
        
      -->
      <connectTimeout>20</connectTimeout>

      <!--
        Defines the read timeout in seconds.
        Defaults to `60`.
        
      -->
      <readTimeout>60</readTimeout>

      <!--
        The Zulip account (typically an email address) to use.
        
      -->
      <account>announce-bot@my.zulipchat.com</account>

      <!--
        The Zulip server endpoint.
        
      -->
      <apiHost>https://my.zulipchat.com/api/v1</apiHost>

      <!--
        The ApiKey associated with the given account.
        If left unspecified, the `JRELEASER_ZULIP_API_KEY`
        environment variable must be defined.
         
      -->
      <apiKey>__DO_NOT_SET_HERE__</apiKey>

      <!--
        The channel where the message will be sent to
        Defaults to `announce`.
        
      -->
      <channel>announce</channel>

      <!--
        The messages' subject.
        Review the available Name Templates.
        
      -->
      <subject>{{projectNameCapitalized}} {{projectVersion}} released!</subject>

      <!--
        The announcement message.
        Review the available Name Templates.
         
      -->
      <message> {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}</message>

      <!--
        Path to a template file that contains the message.
        Review the available Name Templates.
        Defaults to `src/jreleaser/templates/zulip.tpl`.
        
      -->
      <messageTemplate>path/to/template/zulip.tpl</messageTemplate>

      <!--
        Additional properties used when evaluating templates.
         
      -->
      <extraProperties>
        <!--
          Key will be capitalized and prefixed with `zulip`, i.e, `zulipFoo`.
        -->
        <foo>bar</foo>
      </extraProperties>
    </zulip>
  </announce>
</jreleaser>
jreleaser {
  announce {
    // 
    zulip {

      // Enable or disable this announcer.
      // Valid values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
      // Defaults to `NEVER`.
      // 
      active = 'ALWAYS'

      // Defines the connection timeout in seconds.
      // Defaults to `20`.
      // 
      connectTimeout = 20

      // Defines the read timeout in seconds.
      // Defaults to `60`.
      // 
      readTimeout = 60

      // The Zulip account (typically an email address) to use.
      // 
      account = 'announce-bot@my.zulipchat.com'

      // The Zulip server endpoint.
      // 
      apiHost = 'https://my.zulipchat.com/api/v1'

      // The ApiKey associated with the given account.
      // If left unspecified, the `JRELEASER_ZULIP_API_KEY`
      // environment variable must be defined.
      //  
      apiKey = '__DO_NOT_SET_HERE__'

      // The channel where the message will be sent to
      // Defaults to `announce`.
      // 
      channel = 'announce'

      // The messages' subject.
      // Review the available Name Templates.
      // 
      subject = '{{projectNameCapitalized}} {{projectVersion}} released!'

      // The announcement message.
      // Review the available Name Templates.
      //  
      message = ' {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}'

      // Path to a template file that contains the message.
      // Review the available Name Templates.
      // Defaults to `src/jreleaser/templates/zulip.tpl`.
      // 
      messageTemplate = 'path/to/template/zulip.tpl'

      // Additional properties used when evaluating templates.
      // Key will be capitalized and prefixed with `zulip`, i.e, `zulipFoo`.
      //  
      extraProperties.put('foo', 'bar')
    }
  }
}

You may define either message or messageTemplate, with the former taking precedence over the latter.

The template file may be initialized using the template command.