jenkins changes build status based on builid history .
[image: image.png]

[image: image.png]

In order change the build status  you need to delete the build history
Dont do this if you want to retain the build histroy for some purpose.

If you are ok o delete the build history You can use following groovy
script for that:

You can run groovy script from  Go to your Jenkins home page > Manage
Jenkins > Jenkins Script Console
Copy following Script in script console  and hit run button

def jobName = "D_GitCheckoutPipeLine"        # Update the Job Name here
before executing this script
def job = Jenkins.instance.getItem(jobName)
job.getBuilds().each { it.delete() }
job.nextBuildNumber = 1
job.save()

Let me know if you have any questions







*Thanks and Regards,Rajendra Prasad Reddy PenumalliSr. Engineer in
Testing.Mobile:9008566233*


On Fri, 8 Mar 2019 at 05:28, Jagadeesh Gudavalli <[email protected]>
wrote:

> Build step 'Publish JUnit test result report' changed build result to 
> UNSTABLE guys i am facing this issue, can i know how can i resolve.. Thanks 
> in Advance Jagadeesh Gudavalli.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/651f768f-ae80-4a56-a0d2-a8c9c1da6573%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/651f768f-ae80-4a56-a0d2-a8c9c1da6573%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMrg02ScP3QrX0akYm%3DxMmZ21t_R4Wv%2BoqnyXRC_V4rMG8DyAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to