Coder Social home page Coder Social logo

Comments (5)

lechat avatar lechat commented on July 24, 2024

This code in flow.py::_TopLevelControllerMixin.wait_for_jobs() is never executed...

if self.result == BuildResult.UNSTABLE:
            set_build_result(self.username, self.password, 'unstable', direct_url=self.top_flow.direct_url)

Also, set_build_result() relies on Jenkins CLI jar to be in $WORKSPACE, but I can't see what triggers download_cli() anywhere in the code...

from jenkinsflow.

lechat avatar lechat commented on July 24, 2024

The version from master fails build properly, but I can't use it because it has numerous places, where it refers to self.result.name and self.result is int...

flow.py: lines 679, 365, 447, 316

from jenkinsflow.

lhupfeldt avatar lhupfeldt commented on July 24, 2024

Hi Aleksey,

The line numbers you show do not seem to point to any lines with self.result.name!

What do you mean by you can't use it beause...? Are you seing an actual error or are you assuming there is an error? I'm pretty sure result is not int, it is an Enum value. Maybe it is pylint telling you that it is int? pylint's understanding of Enum is not very good.

Regarding if self.result == BuildResult.UNSTABLE: not being executed: BuildResult.UNSTABLE normally only happens when using test plugins (junit) where test cases fail. A failed job will have BuildResul.FAILURE. You can ask jenkinsflow to propagate BuildResul.UNSTABLE from a failed job to the job running the flow, or you can use jenkinflow set_build_result ... from inside a job shell step to change the result to BuildResult.UNSTABLE.

Is the testsuite running correctly against your version of Jenkins?

from jenkinsflow.

lhupfeldt avatar lhupfeldt commented on July 24, 2024

Hi Aleksey,

Any more info about your issue?

from jenkinsflow.

lhupfeldt avatar lhupfeldt commented on July 24, 2024

No more info, closing.

from jenkinsflow.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.