Coder Social home page Coder Social logo

Comments (7)

lhupfeldt avatar lhupfeldt commented on July 24, 2024

Hi Aleksey,

That sounds strange, since jenkinsflow uses the queue item url returned from 'build...', to determine the build number. That was part of the major refactoring to allow simultaneous running of the same flow. Can you send me a minimal example? Which jenkins version are you using?

Regards
Lars

from jenkinsflow.

lechat avatar lechat commented on July 24, 2024

Jenkins ver. 1.532.2

Example code:

"""
Usage:
    pipeline.py TARGET_HOST --jenkinsurl URL --jenkinsuser USER --jenkinstoken TOKEN

Options:
    --help                  This screen
    --jenkinsurl URL        URL of Jenkins to use
    --jenkinsuser USER      Jenkins user
    --jenkinstoken TOKEN    Jenkins user authentication token
"""
from docopt import docopt
from jenkinsflow.flow import serial


def main(api):
    with serial(api, timeout=570, report_interval=3, require_idle=False) as outer_ctrl:
        outer_ctrl.invoke('test_jenkinsflow')

if __name__ == '__main__':
    args = docopt(__doc__)

    from jenkinsflow.jenkins_api import Jenkins
    jenkins = Jenkins(args['--jenkinsurl'], username=args['--jenkinsuser'],
                      password=args['--jenkinstoken'])
    main(jenkins)

The job is simple one - shell:

uname -a
sleep 30
uname -a
sleep 30

from jenkinsflow.

lhupfeldt avatar lhupfeldt commented on July 24, 2024

Thank you, I will look at it tonight.

Regards / Venlig Hilsen
Lars Hupfeldt Nielsen
Hupfeldt IT

Phone: +45 2060 3546

2014-10-16 11:09 GMT+02:00 Aleksey Maksimov [email protected]:

Jenkins ver. 1.532.2

Example code:

"""Usage: pipeline.py TARGET_HOST --jenkinsurl URL --jenkinsuser USER --jenkinstoken TOKEN
Options: --help This screen --jenkinsurl URL URL of Jenkins to use --jenkinsuser USER Jenkins user --jenkinstoken TOKEN Jenkins user authentication token"""from docopt import docoptfrom jenkinsflow.flow import serial

def main(api):
with serial(api, timeout=570, report_interval=3, require_idle=False) as outer_ctrl:
outer_ctrl.invoke('test_jenkinsflow')
if name == 'main':
args = docopt(doc)

from jenkinsflow.jenkins_api import Jenkins
jenkins = Jenkins(args['--jenkinsurl'], username=args['--jenkinsuser'],
                  password=args['--jenkinstoken'])
main(jenkins)

The job is simple one - shell:

uname -a
sleep 30
uname -a
sleep 30


Reply to this email directly or view it on GitHub
#24 (comment)
.

from jenkinsflow.

lhupfeldt avatar lhupfeldt commented on July 24, 2024

Hi Aleksey,

I'm unable to reproduce. I'm on Jenkins 1.567 on Fedora 20.
Could you try to add some debug to jenkins_job.ApiJob.invoke:
print("response.location:", response.location)
If you get the same location it is a jenkins bug. If you get different locations and jenkinsflow looses track of the correct build, then it is a jenkinsflow bug.
You could also try to update jenkins.

Regards
Lars

from jenkinsflow.

lechat avatar lechat commented on July 24, 2024

Hi, Lars

I can't update Jenkins due to some changes in Jenkins, that I know will break my setup. I use custom credentials plugin and it is not very easy to change core plugins in latest Jenkins. So I have to wait till my changes will be in next Jenkins release (they already merged, but plugin version is not yet available).

I will try your suggestion now.

from jenkinsflow.

lechat avatar lechat commented on July 24, 2024

I've got the same location... Jenkins bug :(

from jenkinsflow.

lhupfeldt avatar lhupfeldt commented on July 24, 2024

I will close this now, let me know when you upgrade if the issue is resolved.

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.