question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] Is it possible to add custom phabricator comment from a jenkins pipeline step?

See original GitHub issue

Hey guys, Is it possible to provide such a file like described in the Advanced usage docs from a jenkins pipeline?

I’ve already figured out how to use the PhabricatorNotifier itself, but couldn’t find anything about the custom comments:

...
post {
  always {
    script {
      currentBuild.result = currentBuild.currentResult
    }
    step([$class: 'PhabricatorNotifier', commentOnSuccess: true, commentWithConsoleLinkOnFailure: true])
  }
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
OCram85commented, Jul 27, 2020

I ended up using the Phabricator API itself to add custom comments:

stage('.phabircator-comment') {
  steps {
    sh label: 'Reporting results', script: 'curl https://phabricator.foo.bar/api/differential.createcomment -d api.token=$MYAPIKEY -d revision_id=$ABORT_ON_REVISION_ID -d message="$(cat .phabricator-comment)"'
}


0reactions
OCram85commented, Jul 29, 2020

Just solved this with workaround shown in previous comment 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipeline Steps Reference - Jenkins
The following plugins offer Pipeline-compatible steps. ... Custom Build Properties Plugin ... addGitLabMRComment : Add comment on GitLab Merge Request ...
Read more >
Jenkins and Phabricator integration - Stack Overflow
First go to manage jenkins --> plugins and install the phabricator plugin. After that you can follow the documentation on the github page....
Read more >
Publishers — Jenkins Job Builder 3.12.1.dev9 documentation
This plugin makes it possible to copy artifacts to remote locations. ... build-pack – If your application requires a custom buildpack, you can...
Read more >
Continuous Automated Testing using Phabricator and Jenkins
Phabricator and Jenkins pipeline can be used to generate builds using a code patch (before the code is committed to mainline) and then...
Read more >
How To Use Shared Libraries In A Jenkins Pipeline?
In brief, here are steps to create & use the Jenkins shared library: Create a separate git repo for the Jenkins pipeline library...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found