Search code examples
jenkinsjenkins-pluginsscp

publish artifacts to scp repository if success


I'm working on a php project. I want to deploy on the test server if build success. I install the SCP plugin and configure it, but I don't know how to tell to Jenkins to not publish the project if build fail.

How could I do ?


Solution

  • You can use Flexible Publish Plugin in post build steps.

    Use Run Conditions to decide whether to publish or not based on the Current Build Status.