issue 1) Dedug: ERROR: Couldn't find any revision to build
Avoid second fetch
git rev-parse refs/remotes/origin/master^{commit} # timeout=10 git rev-parse origin/master^{commit} # timeout=10 ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. Finished: FAILURE
This is simply because github change the default branch name from "master" to "main".
In your project -> Configure:
change master to main or blank
issue 2) fix the docker Jenkins timezone:
docker run ... -e JAVA_OPTS=-Duser.timezone=Asia/Shanghai
or Dackerfile: FROM jenkins/jenkins:2.176.1
USER root
RUN
rm -f /etc/localtime &&
ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime &&
echo 'America/Los_Angeles' > /etc/timezone &&
dpkg-reconfigure --frontend noninteractive tzdata