Summary
JENKINS-41745: Deprecate the Remoting-based protocol for the Jenkins CLI feature. Enhance the client and server to conveniently perform most existing CLI tasks with simpler and safer protocols.
#!/bin/bash -xe | |
# adapted from https://launchpadlibrarian.net/422519169/slack via https://bugs.launchpad.net/ubuntu/+source/xfwm4/+bug/1827302/comments/12 | |
ICON=/snap/slack/current/usr/share/pixmaps/slack.png | |
nohup /snap/bin/slack | |
WINDOWS= | |
while [ -z "$WINDOWS" ] | |
do |
# Portions Copyright 2016 The Kubernetes Authors All rights reserved. | |
# Portions Copyright 2018 AspenMesh | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
export BASE=1.19 # or whatever; last release compatible with targeted core or other deps | |
export BASETAG=mystuff-${BASE} # or as per http://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html#tagNameFormat | |
export FIX=abcd1234 # whatever the backportable fix was, in master or somewhere newer than $BASE | |
git checkout -b ${BASE}.x $(git log --reverse --ancestry-path --pretty=%H ${BASETAG}..master | head -1) | |
# or for JEP-305 use: mvn versions:set-property -Dproperty=revision -DnewVersion=${BASE}.1 | |
mvn versions:set -DnewVersion=${BASE}.1-SNAPSHOT -DgenerateBackupPoms=false | |
git commit -a -m "Prepare for ${BASE}.1" | |
git push -u origin ${BASE}.x | |
git cherry-pick -x -m1 $FIX | |
mvn -B release:{prepare,perform} |
[alias] | |
# http://stackoverflow.com/a/30010601/12916 | |
first-child = "!f() { git log --reverse --ancestry-path --pretty=%H $1..${2:-HEAD} | head -1; }; f" |
[alias] | |
out = !git log --patch-with-stat --irreversible-delete --find-renames @{u}.. > /tmp/out.diff && $EDITOR /tmp/out.diff |
#!/bin/bash | |
# http://stackoverflow.com/a/37730085/12916 | |
if [ $# -ge 1 ] | |
then | |
files="$@" | |
else | |
files=* | |
fi | |
for r in $files | |
do |
JENKINS-41745: Deprecate the Remoting-based protocol for the Jenkins CLI feature. Enhance the client and server to conveniently perform most existing CLI tasks with simpler and safer protocols.
#!/bin/sh | |
set -e | |
git branch | |
git status -s | |
git pull | |
git log --patch-with-stat --irreversible-delete --find-renames @{u}.. | |
gitg | |
git tag --sort=version:refname |
(defun git-grep-dired (repo wildcards regexp) | |
"Find Git-controlled files in DIR with a name like WILDCARDS containing a regexp REGEXP and start Dired on output." | |
(interactive "DGit-grep (directory): \nsGit-grep (filename wildcard(s), e.g. *.xml): \nsGit-grep (grep regexp): ") | |
(setq repo (file-name-as-directory (expand-file-name repo))) | |
(switch-to-buffer (concat "*Git Grep " repo "*")) | |
(fundamental-mode) | |
(setq buffer-read-only nil) | |
(erase-buffer) | |
(setq default-directory repo) | |
(let ((cmd (format "git --git-dir %s/.git ls-files -z%s | xargs -0 grep -lZ -- %s | xargs -0 ls -l" |
… WARNING org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$6 onSuccess | |
Failed to abort Owner[…/…:… #…] | |
hudson.remoting.ChannelClosedException: channel is already closed | |
at hudson.remoting.Channel.send(Channel.java:578) | |
at hudson.remoting.Request.call(Request.java:130) | |
at hudson.remoting.Channel.call(Channel.java:780) | |
at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928) | |
at hudson.Launcher$ProcStarter.start(Launcher.java:381) | |
at hudson.Launcher$ProcStarter.join(Launcher.java:388) | |
at org.jenkinsci.plugins.docker.workflow.WithContainerStep$Decorator$1.kill(WithContainerStep.java:237) |