* Gets the dependency relationship from this build (as the sink)
* and that project (as the source.)
*
* @return
* Build number of the upstream build that feed into this build,
* or -1 if no record is available (for example if there is no {@link Fingerprinter.FingerprintAction}, even if there is an {@link Cause.UpstreamCause}).
if(Jenkins.getInstance().getItemByFullName(downstream.getFullName())!=downstream){// this checks Item.READ also on parent folders
LOGGER.log(Level.WARNING,"Running as {0} cannot even see {1} for trigger from {2}",newObject[]{Jenkins.getAuthentication().getName(),downstream,getUpstreamProject()});
returnfalse;// do not even issue a warning to build log
if(Jenkins.getInstance().getItemByFullName(downstream.getFullName())!=downstream){// this checks Item.READ also on parent folders
LOGGER.log(Level.WARNING,"Running as {0} cannot even see {1} for trigger from {2}",newObject[]{Jenkins.getAuthentication().getName(),downstream,getUpstreamProject()});
returnfalse;// do not even issue a warning to build log