Conditional Post-Build step in Jenkins (Ideally without plugins)

If I understand correctly I can make a build step conditional using this plugin:

First does this plugin work the Post-Build steps?
Second is there a way to make Post-Build steps conditional without a plugin?

  • how to get $CAUSE in workflow
  • Empty var/lib/jenkins directory installing Jenkins on CentOS 5.8
  • can we use tunnelling in jenkins before connecting to the svn repository?
  • Jenkins building for different environments
  • Setting up jenkins with git by ssh
  • Jenkins Text-finder unable to success my Build
  • The scenario I have is I am supporting both WebDriver and Selenium IDE tests with one universal Jenkins Job setup. If they have checked in either type of test it runs them. I then want it to conditionally look if any results files show up and if so then do the publish results Post-Build step, otherwise skip that step.

    Currently if no results show up it simply marks the build as a failure since no test results were found.

    Any suggestions would help!

  • Jenkins could not run git
  • Retrieve id of remotely triggered jenkins job
  • Jenkins Git Plugin and Reference Repos?
  • SonarQube Msbuild Runner and Jenkins Unauthorized Error
  • What password encryption Jenkins is using?
  • Blocking a jenkins task until all downstream tasks complete?
  • One Solution collect form web for “Conditional Post-Build step in Jenkins (Ideally without plugins)”

    You can make any Build step execute as Post-build step.

    • Install Flexible Publish plugin
    • Install Any Build Step plugin
    • Under Configure System, look for “Flexible publish”, and choose Any build step from drop-down.

    The configure Job.

    • In your Job configuration, add Post-build action called “Flexible Publish”.
    • Select condition.
    • Select action.
    Git Baby is a git and github fan, let's start git clone.