Jenkins 명령어
Register the Jenkins service with the command:
sudo systemctl daemon-reload
You can start the Jenkins service with the command:
sudo systemctl start jenkins
You can check the status of the Jenkins service using the command:
sudo systemctl status jenkins
Jenkins 환경 설정
JENKINS_HOME=/var/lib/jenkins
AWS 관련 설정
KEY 파일 설정
Jenkins Publish over SSH
Path to key 사용할 경우 key 파일 권한 설정 해줘야 파일 인식
chmod 0600 ${JENKINS_HOME}/.ssh/my_private_key
chown jenkins:jenkins ${JENKINS_HOME}/.ssh/my_private_key
aws-cli credencial
userabc$ sudo su 2
root$ su jenkins 3
jenkins$ aws configure
S3 배포 관련
aws configure를 jenkins 계정에서 설정한다.
workspace 위치 변경
config.xml 에서 수정 후 재실행
TimeZone 변경
Change System Time Zone
You can also set it from the Jenkins Script Console on a live system without the need for a restart. This can also be included in a Post-initialization script to make it permanent.
System.setProperty('org.apache.commons.jelly.tags.fmt.timeZone', 'Asia/Seoul')