I have used the above code and update my config file of specific job but its not replicating the changed config file in under that job?Please let me know is the above code working fine?Thanks
Please consider this scenario,I have declared Global string parameter(GIT_PATH) for the job 'ABC',I am trying to update the value of GIT_PATH through the above code but its not reflecting that changes in server job 'ABC' config file.
I keep getting java.io.FileNotFoundException at InputStream inputStream = connection.getInputStream(). I am not sure why and how to go about this exception. I do have the valid URL for the job config.xml and am using usename and API token.
I even tried giving the following as I need to access the config.xml of a CI job.
Comments
5 comments
Hi,
I have used the above code and update my config file of specific job but its not replicating the changed config file in under that job?Please let me know is the above code working fine?Thanks
Hi Anant,
Not sure what you mean by "... but its not replicating the changed config file in under that job".
The code should have been tested at the moment of writing. Given the backward compatibility of Java, it should still work as it was.
Hi Denys,
Thank you for reply,
Please consider this scenario,I have declared Global string parameter(GIT_PATH) for the job 'ABC',I am trying to update the value of GIT_PATH through the above code but its not reflecting that changes in server job 'ABC' config file.
Hi Denys,
I have got it ,Thank you.
Hi Denys,
I keep getting java.io.FileNotFoundException at InputStream inputStream = connection.getInputStream(). I am not sure why and how to go about this exception. I do have the valid URL for the job config.xml and am using usename and API token.
I even tried giving the following as I need to access the config.xml of a CI job.
connection.setRequestMethod("GET");
Still there is exception
Thanks in advance for your help
Anil
Please sign in to leave a comment.