build status UNstable

16 views
Skip to first unread message

Jagadeesh Gudavalli

unread,
Mar 7, 2019, 6:58:59 PM3/7/19
to Jenkins Users
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.

RAJENDRA PRASAD

unread,
Mar 8, 2019, 1:21:38 AM3/8/19
to jenkins...@googlegroups.com
jenkins changes build status based on builid history .
image.png
 
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 Penumalli
Sr. Engineer in Testing.
Mobile:9008566233


On Fri, 8 Mar 2019 at 05:28, Jagadeesh Gudavalli <jagade...@gmail.com> 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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/651f768f-ae80-4a56-a0d2-a8c9c1da6573%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages