Comments (7)
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.
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.
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 serialdef 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.
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.
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.
I've got the same location... Jenkins bug :(
from jenkinsflow.
I will close this now, let me know when you upgrade if the issue is resolved.
from jenkinsflow.
Related Issues (19)
- More information about installation is needed HOT 2
- Demo scripts require proxytools to be installed HOT 2
- Make it easier to see job status on failure HOT 4
- Dump flow HOT 4
- Put jenkinsflow to pypi HOT 12
- Put sphinx generated documentation to ReadTheDocs HOT 2
- Minor issue with Jenkins.__init__ in specialized_api HOT 1
- How to schedule pipeline even if some jobs are running? HOT 2
- Is it possible to add timing information to final report? HOT 3
- Flow callback function HOT 1
- Method to get flow results
- Jenkinsflow doesn't work if Jenkins is not served from "/" HOT 1
- subprocess dependency HOT 1
- Jenkinsflow returns SUCCESS when flow has failed HOT 5
- Timeout HOT 3
- Passing "token" parameters in "invoke" HOT 8
- Adding _DelayedSingleJob HOT 3
- Shebang in .py files HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jenkinsflow.