The Jira plug provides an interface to perform actions in a remote Jira server for the Plastic SCM DevOps system.
This is the source code used by the actual built-in Jira plug. Use it as a reference to build your own Issue Tracker plug!
The executable is built from .NET Framework code using the provided src/jiraplug.sln
solution file. You can use Visual Studio or MSBuild to compile it.
Note: We'll use ${DEVOPS_DIR}
as alias for %PROGRAMFILES%\PlasticSCM5\server\devops
in Windows or /var/lib/plasticscm/devops
in macOS or Linux.
If you just want to use the built-in Jira plug you don't need to do any of this. The Jira plug is available as a built-in plug in the DevOps section of the WebAdmin. Open it up and configure your own!
You'll notice some configuration files under /src/configuration
. Here's what they do:
jiraplug.log.conf
: log4net configuration. The output log file is specified here. This file should be in the binaries output directory.issuetracker-jira.definition.conf
: plug definition file. You'll need to place this file in the Plastic SCM DevOps directory to allow the system to discover your Jira plug.jiraplug.config.template
: mergebot configuration template. It describes the expected format of the Jira plug configuration. We recommend to keep it in the binaries output directoryjiraplug.conf
: an example of a valid Jira plug configuration. It's built according to thejiraplug.config.template
specification.
To allow Plastic SCM Server DevOps to discover your custom Jira plug, just drop
the issuetracker-jira.definition.conf
file in ${DEVOPS_DIR}/config/plugs/available
.
Make sure the command
and template
keys contain the appropriate values for
your deployment!
The Jira plug provides an API for mergebots to connect to Jira. They use the plug to retrieve issue information from the Issue Tracker server and modify issue statuses according to the build results.
When a mergebot requires a Issue Tracker plug to work, you can select a Jira Plug Configuration.
You can either select an existing configuration or create a new one.
When you create a new Jira Plug Configuration, you have to fill in the following values:
No further configuration is required in the Jira server.
A configured Jira plug receives messages whenever the mergebot needs to find out whether a task has been properly marked as completed in the issue tracker. It serves merely as a communication proxy between Jira and a mergebot.
It's also capable of altering the status of an issue according to its assigned workflow. The mergebot will tell the Jira plug which transition needs to apply to a given issue and the Jira plug will communicate with Jira to make sure it's done.
If you have any questions about this plug don't hesitate to contact us by email or in our forum!