Slack
This section guides you through integrating the Slack plugin for Jenkins with Perfecto Smart Reporting.
In this step, you install the Slack plugin for Jenkins and configure it with your workspace information and credentials.
To install and configure the Slack plugin for Jenkins:
- Install the Slack plugin for Jenkins from the Manage Jenkins > Manage Plugins view.
- If needed, create a channel in Slack.
-
Go to:
Copyhttps://<workspace>.slack.com/apps/new/A0F7VRFKN-jenkins-ci
where
<workspace>
is the name of your workspace. -
Select the channel name and click Add Jenkins CI integration.
-
In Jenkins, go to Manage Jenkins > Configure System.
-
Under Slack > Workspace, enter your Slack Workspace name.
-
Create a secret credential text, provide your Slack integration credential token ID (provided by Slack) as its value, and select this text as the credential.
In this step, you configure the Jenkins job with a custom message that includes a link to the report in the Perfecto Test Analysis view.
To configure the Jenkins job
-
In Jenkins, open your Jenkins job config.
-
In the Post-build Actions section of the project configuration, select Slack Notifications.
-
Click Advanced and select the desired notifications (such as Notify Success and Notify Every Failure) based on the job status.
-
Find and select the Include Custom Message checkbox.
-
In the Custom Message field, add the following text:
CopyView your Perfecto report at: https://${cloudName}.reporting.perfectomobile.com/library?jobName[0]=${JOB_NAME}&jobNumber[0]=${BUILD_NUMBER}
where:
${cloudName}
is the prefix of your Perfecto cloud. For example, if you access Perfecto at https://demo.perfectomobile.com, then${cloudName}=demo
.