重启GCE后,Jenkins无法正常启动

时间:2014-12-24 11:31:52

标签: java jenkins google-compute-engine bitnami

如果因为安装插件而需要重启Jenkins,那么奴隶永远不会打开。我正在使用Google Compute Engine。我遵循了这个教程:

https://cloud.google.com/tools/repo/push-to-deploy

使用它来创建Jenkins服务器:

export PASSWORD=<password>
export PROJECT_ID=<project-id>

gcloud compute \
    instances create bitnami-jenkins \
    --project ${PROJECT_ID} \
    --image-project bitnami-launchpad \
    --image bitnami-jenkins-1-587-0-linux-debian-7-x86-64-image \
    --zone us-central1-a \
    --machine-type n1-standard-1 \
    --metadata "bitnami-base-password=${PASSWORD}" \
               "bitnami-default-user=user" \
               "bitnami-key=jenkins" \
               "bitnami-name=Jenkins" \
               "bitnami-version=1-587-0" \
               "bitnami-url=//bitnami.com/stack/jenkins" \
               "bitnami-description=Jenkins." \
               "startup-script-url=https://dl.google.com/dl/jenkins/p2dsetup/setup-script.sh" \
    --scopes "https://www.googleapis.com/auth/userinfo.email" \
             "https://www.googleapis.com/auth/devstorage.full_control" \
             "https://www.googleapis.com/auth/projecthosting" \
             "https://www.googleapis.com/auth/appengine.admin" \
    --tags "bitnami-launchpad"

这是詹金斯重启后的样子:

enter image description here

1 个答案:

答案 0 :(得分:2)

我们刚刚发布了对启动脚本的更改来解决此问题。下次重新启动实例时,奴隶应该在线。