heroku / heroku-jenkins-plugin

DEPRECATED: A plugin for interacting with Heroku during Jenkins builds
45 stars 9 forks source link

Deprecated #20

Open ludicruz opened 7 years ago

ludicruz commented 7 years ago

I see that this is deprecated. I would like to know what your recommendations would be for my use case. I am only using this plugin to run processes as a build step. I am currently using a hosted cloudbees jenkins instance, because of this I don't have the luxury to install the heroku client easily on the jenkins server. Is there a different plugin that i'm not seeing that will do this same thing?

On a side note the issue #18 can be worked around by using templates. I would also like to report that the run process does not propagate the return code so if a process fails the build step still passes.

ludicruz commented 7 years ago

@jkutner: Thanks and any help would be appreciated.

jkutner commented 7 years ago

I recommend using the heroku-maven-plugin when deploying from CI.

In lieu of this, you should be able to git push heroku master from Jenkins if you can configure the Git remotes.

ludicruz commented 7 years ago

Thank you but I'm not using this plugin for deployment at all. The deployment is done from Jenkins just as you describe with git push. The piece we're using is very small, it's just the running of a specific process within a job. For instance I have some scripts I need to run sometimes and can create simple jenkins jobs that just wrap the Procfile entries.

I think this is a quite handy plugin for that use case:

image

jkutner commented 7 years ago

In that case, you might be best off using the Heroku Platform API directly.

ryanbrainard commented 7 years ago

Another option would be to install the Heroku CLI and use heroku run in an Execute Shell task.