Skip to content

Shawn1776/jenkins101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jenkins101

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

Screen Shot 2023-03-01 at 10 17 17 AM

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

Configure Timezone

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

TimeZone.getTimeZone("America/New_York")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published