Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] #1

Open
EdwinFairchild opened this issue Jun 17, 2022 · 1 comment
Open

[Question] #1

EdwinFairchild opened this issue Jun 17, 2022 · 1 comment

Comments

@EdwinFairchild
Copy link

Do you know if it possible to fetch the xml file from a Jenkins build so that this script can parse it?
I have tried things like beautiful soup but keep getting authentication issues, since this is obviously a server that requires log in to get to the rss xml file. Maybe there is a way jenkins can save that file else where and I can fetch it by ssh into the server.. any thoughts?

@EdwinFairchild
Copy link
Author

EdwinFairchild commented Jun 17, 2022

figured out a way. Make an API token in Jenkins and then
right before you call the run function I put this

stream = os.popen('curl -s -X POST -k --user edwin.amaya:yourTokenHere htps://path_to_jenkins_job_/rssAll  > rssAll.xml')
    
output = stream.read()
    
output 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant