[MediaWiki-commits] [Gerrit] labs...stashbot[master]: stashbot.sh: Add 'attach' command

2016-12-08 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/325973 )

Change subject: stashbot.sh: Add 'attach' command
..


stashbot.sh: Add 'attach' command

Add an new `stashbot.sh attach` command that will connect to the running
pod and allow interactive debugging. h/t yuvipanda

Change-Id: If6d3d23a0e8adab9c84ef9808555a3ac79d4caab
---
M bin/stashbot.sh
1 file changed, 5 insertions(+), 1 deletion(-)

Approvals:
  BryanDavis: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/bin/stashbot.sh b/bin/stashbot.sh
index e711a4c..c879c14 100755
--- a/bin/stashbot.sh
+++ b/bin/stashbot.sh
@@ -56,8 +56,12 @@
 git --no-pager log --stat HEAD..@{upstream} &&
 git rebase @{upstream}
 ;;
+attach)
+echo "Attaching to pod..."
+exec kubectl exec -i -t $(_get_pod) /bin/bash
+;;
 *)
-echo "Usage: $0 {start|stop|restart|status|tail|update}"
+echo "Usage: $0 {start|stop|restart|status|tail|update|attach}"
 exit 1
 ;;
 esac

-- 
To view, visit https://gerrit.wikimedia.org/r/325973
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If6d3d23a0e8adab9c84ef9808555a3ac79d4caab
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/stashbot
Gerrit-Branch: master
Gerrit-Owner: BryanDavis 
Gerrit-Reviewer: BryanDavis 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] labs...stashbot[master]: stashbot.sh: Add 'attach' command

2016-12-08 Thread BryanDavis (Code Review)
BryanDavis has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/325973 )

Change subject: stashbot.sh: Add 'attach' command
..

stashbot.sh: Add 'attach' command

Add an new `stashbot.sh attach` command that will connect to the running
pod and allow interactive debugging. h/t yuvipanda

Change-Id: If6d3d23a0e8adab9c84ef9808555a3ac79d4caab
---
M bin/stashbot.sh
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/stashbot 
refs/changes/73/325973/1

diff --git a/bin/stashbot.sh b/bin/stashbot.sh
index e711a4c..c879c14 100755
--- a/bin/stashbot.sh
+++ b/bin/stashbot.sh
@@ -56,8 +56,12 @@
 git --no-pager log --stat HEAD..@{upstream} &&
 git rebase @{upstream}
 ;;
+attach)
+echo "Attaching to pod..."
+exec kubectl exec -i -t $(_get_pod) /bin/bash
+;;
 *)
-echo "Usage: $0 {start|stop|restart|status|tail|update}"
+echo "Usage: $0 {start|stop|restart|status|tail|update|attach}"
 exit 1
 ;;
 esac

-- 
To view, visit https://gerrit.wikimedia.org/r/325973
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If6d3d23a0e8adab9c84ef9808555a3ac79d4caab
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/stashbot
Gerrit-Branch: master
Gerrit-Owner: BryanDavis 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits