CI / CD
1.
openjdk-1.8
2.
database
•
순서
cd /data/bamboo/atlassian-bamboo-8.1.4/atlassian-bamboo/WEB-INF/classes
vi bamboo-init.properties
bamboo.home=/home/bamboo/bamboo-home
cd /data/bamboo/atlassian-bamboo-8.1.4/bin
./start-bamboo.sh
Shell
복사
•
init
cat /etc/init.d/bamboo
#!/bin/sh
set -e
### BEGIN INIT INFO
# Provides: bamboo
# Required-Start: $local_fs $remote_fs $network $time
# Required-Stop: $local_fs $remote_fs $network $time
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Atlassian Bamboo Server
### END INIT INFO
# INIT Script
######################################
# Define some variables
# Name of app ( bamboo, Confluence, etc )
APP=bamboo
# Name of the user to run as
USER=bamboo
# Location of application's bin directory
BASE=/opt/atlassian/bamboo/current
case "$1" in
# Start command
start)
echo "Starting $APP"
/bin/su - $USER -c "export BAMBOO_HOME=${BAMBOO_HOME}; $BASE/bin/startup.sh &> /dev/null"
;;
# Stop command
stop)
echo "Stopping $APP"
/bin/su - $USER -c "$BASE/bin/shutdown.sh &> /dev/null"
echo "$APP stopped successfully"
;;
# Restart command
restart)
$0 stop
sleep 5
$0 start
;;
*)
echo "Usage: /etc/init.d/$APP {start|restart|stop}"
exit 1
;;
esac
exit 0
# chmod +x /etc/init.d/bamboo
# /sbin/chkconfig --add bamboo
#
# chkconfig --list bamboo
Shell
복사
•
테스트
plan - stage - job - task
1. create plan
Shell
복사