jenkinsci/office-365-connector-plugin

Fact definitions - default values and order

Giusti opened this issue · 2 comments

So I wanted to use Fact definitions to display a deployment notification in our Teams channel

The goal was to display the status of deployment (we have multiple in some builds)
The Person and Team which triggered the deployment
Remove all the default values like Remarks, Developers and so on

I did the following:

factDefinitions: [
  [name: "Deployment", template: LAST_STAGE],
  [name: "Status", template: env.D_STATUS],
  [name: "Started By", template: env.PERSON],
  [name: "Developers", template: env.TEAM],
  [name: "Remarks", template: null]
]

But I dont know how I am able to remove or override the "default" facts that are shown (Status, Remarks, Commiters, Developers)

facts

Also as you can see in the facts I ordered them like this (1. Deployment, 2. Status, 3. Started By)
And in the picture the order is completly different

Also I could not find any way to change the title of the notfication, for deployments I would rather have "Deployment Dev" for exmaple but this also seems to be fixed I guess

Is there any way or are these values just hardcoded?

You cannot change the order or select which items should be displayed