I have a private Jenkins running on an internal private network not visible from the internet. I have also a public Jenkins instance, visible from the internet and accessible only over HTTPS.
How can I publish completed builds of a scripted pipeline job from private instance to the public one (including artifacts, logs, test results and so on)?
I know there's a Build Publisher Plugin for Jenkins, but I could not figure out how to use it from scripted pipeline.
EDIT: Build Publisher Plugin cannot be used from pipeline jobs without modifications. Is there any other way to achieve the same?