Skip to content

Instantly share code, notes, and snippets.

View VeeTeeDev's full-sized avatar

Vierbergen Tim VeeTeeDev

  • ViTim
  • Antwerp
View GitHub Profile
@VeeTeeDev
VeeTeeDev / vsm.json
Created November 13, 2017 13:01
GoCD VSM json for specific pipeline
{
"current_pipeline": "test",
"levels": [
{
"nodes": [
{
"locator": "",
"name": "git@gitlab.com:testprojects/footer.git",
"depth": 1,
"instances": [],
2017-02-03 12:32:19,919 [loopThread] INFO go.agent.service.SslInfrastructureService:89 - [Agent Registration] Starting to register agent.
2017-02-03 12:32:20,134 [loopThread] INFO go.agent.service.SslInfrastructureService:193 - This agent is now approved by the server.
2017-02-03 12:32:20,157 [loopThread] INFO go.agent.service.SslInfrastructureService:121 - [Agent Registration] Retrieved registration from Go server.
2017-02-03 12:32:20,161 [loopThread] INFO go.agent.service.SslInfrastructureService:129 - [Agent Registration] Stored registration for cert with hash code: s2QEHF9aqptbUWX2LzyXog== not valid before: Thu Jan 01 00:00:00 UTC 1970
2017-02-03 12:32:20,184 [loopThread] INFO go.agent.service.SslInfrastructureService:93 - [Agent Registration] Successfully registered agent.
2017-02-03 12:33:29,776 [loopThread] WARN thoughtworks.go.agent.AgentHTTPClientController:125 - [Agent Loop] Invalid agent certificate with fingerprint c0a0c75c-8fcb-44ca-a0a4-f3d6670b467f. Registering with server on next iterati
#!/usr/bin/python3 -u
import os, os.path, sys, stat, signal, errno, argparse, time, json, re
KILL_PROCESS_TIMEOUT = 5
KILL_ALL_PROCESSES_TIMEOUT = 5
LOG_LEVEL_ERROR = 1
LOG_LEVEL_WARN = 1
LOG_LEVEL_INFO = 2
LOG_LEVEL_DEBUG = 3
#!/bin/bash
COLOR_START=""
COLOR_END=""
echo -e "${COLOR_START}Starting Go Agent to connect to server $GO_SERVER_URL ...${COLOR_END}"
/sbin/setuser go /etc/init.d/go-agent start
docker logs b7f8fd2cb35e
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 9
Starting Go Agent to connect to server ...
[Fri Feb 3 11:20:24 UTC 2017] using default settings from /etc/default/go-agent
logFile Environment Variable= null
Logging to go-agent-bootstrapper.log
0 [TouchLoopThread-2] INFO com.thoughtworks.go.agent.launcher.Lockfile - Using lock file: /var/lib/go-agent/.agent-bootstrapper.running