Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-19962

Add the ability to declare a job successful even if there are no changes

      Hello,
      I run some builds every night. I force the execution of those builds because of some quality analysis of projects

      Each one has a "post-build action" which deploys on weblogic server. In order to reduce the server load and to only deploy the updated projects I mark the option "Deploying only when sources changes".

      In some projects, the status is unstable even the unit tests are good.

      I saw on a previous issue (JENKINS-19016) that you changed the job's status from "FAILED" to "UNSTABLE".

      However, it would be nice if this behaviour could be customizable ( eg . add some radio button to choose the expected behaviour.

      Thanks.

      Regards

          [JENKINS-19962] Add the ability to declare a job successful even if there are no changes

          Hi,

          Good idea. I'll add this feature in th e 2.10 version

          Thanks.

          Raphael CHAUMIER added a comment - Hi, Good idea. I'll add this feature in th e 2.10 version Thanks.

          Mustafa Ulu added a comment -

          Any progress on this issue? I would like to help implement it.

          Mustafa Ulu added a comment - Any progress on this issue? I would like to help implement it.

          Hi,

          I didn't work on it yet. Your contribution is welcomed. If you have any idea about implementing it you can submit a pull request.

          Regards

          Raphael CHAUMIER added a comment - Hi, I didn't work on it yet. Your contribution is welcomed. If you have any idea about implementing it you can submit a pull request. Regards

          Mustafa Ulu added a comment -

          Hi,

          I am already working on a pr. To me this should be the default behaviour and there should be no configuration option for it. Out of six WebLogicPreRequisteStatusS only UNSATISFIED_DEPENDENCIES should modify build result. Others should just return.

          If this is acceptable I can submit a pr soon. If not I will start working on a configuration option.

          Mustafa Ulu added a comment - Hi, I am already working on a pr. To me this should be the default behaviour and there should be no configuration option for it. Out of six WebLogicPreRequisteStatus S only UNSATISFIED_DEPENDENCIES should modify build result. Others should just return. If this is acceptable I can submit a pr soon. If not I will start working on a configuration option.

          Hi,

          I've just read your PR. If I understand, there's a new option to specify if the job has to be marked as UNSTABLE (or not) in the job configuration.

          I will plan to release the plugin the next week.

          Regards,

          Raphael CHAUMIER added a comment - Hi, I've just read your PR. If I understand, there's a new option to specify if the job has to be marked as UNSTABLE (or not) in the job configuration. I will plan to release the plugin the next week. Regards,

          Hi,

          I've just released the 3.4 version of the plugin. Tell me if it's ok then I will close the issue.

          Regards

          Raphael CHAUMIER added a comment - Hi, I've just released the 3.4 version of the plugin. Tell me if it's ok then I will close the issue. Regards

          Mustafa Ulu added a comment -

          This works when mustExitOnFailure is set to false. If mustExitOnFailure is true build still fails if there are no changes. I will send another PR.

          Mustafa Ulu added a comment - This works when mustExitOnFailure is set to false. If mustExitOnFailure is true build still fails if there are no changes. I will send another PR.

          Hi mustafau

          Sorry for my late response. I didn't see your last comment. Do you talk about the following PR https://github.com/jenkinsci/weblogic-deployer-plugin/pull/13 ?

           

          Raphael CHAUMIER added a comment - Hi  mustafau Sorry for my late response. I didn't see your last comment. Do you talk about the following PR https://github.com/jenkinsci/weblogic-deployer-plugin/pull/13  ?  

          To check

          Raphael CHAUMIER added a comment - To check

          Done

          Raphael CHAUMIER added a comment - Done

            raphc Raphael CHAUMIER
            littlewing alexandre touret
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: