Summary
I am unable to rebuild downstream jobs by manually triggering the upstream job
Steps to reproduce
I have pipeline A, B , C that are triggered by a launcher pipeline D upon its completion with SUCCESS
Trigger added to each pipleineJob section in Yaml file is :
pipelineJob('A') {
triggers {
upstream('D', 'SUCCESS')
}
}
When pipeline A, B and C are marked SUCCESS or FAILED while associated with a build version (i.e v2023.x.x.x) , the automatic trigger via pipeline D works correctly
However, if downstream job fails and marked failed with build number # , the automatic trigger via pipeline D does not re-start build despite the SUCCESS status of pipeline D unless I manually rebuild downstream jobs separately
Type of error that caused the downstream job to fail in this case is a checkout failure to git repo and so pipelines A,B and C were unable be triggered by pipeline D
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2842)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2185)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:635)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:997)
... 8 more
ERROR: Error fetching remote repo 'origin'
ERROR: Maximum checkout retry attempts reached, aborting
Finished: FAILURE
Expected results
When triggering pipeline D and upon completion with SUCCESS : downstream jobs A, B and C should be triggered and start build despite having failed before
Actual results
When triggering pipeline D and upon completion with SUCCESS : downstream jobs A, B and C are not triggered