触发詹金斯建立通过ssh吗? [英] Triggering jenkins build over ssh?

查看:61
本文介绍了触发詹金斯建立通过ssh吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从USS(z/os上的unix)git存储库触发Jenkins构建. jenkins服务器正在本地Windows机器上的tomcat中运行.

I'm trying to trigger a Jenkins build from a USS (unix on z/os) git repository. The jenkins server is running in tomcat on my local windows machine.

网络上的大多数示例都描述了这样的解决方案: http://www.andyfrench.info/2015/03/automatically-triggering-jenkins-build.html

Most examples on the web describe a solution like this: http://www.andyfrench.info/2015/03/automatically-triggering-jenkins-build.html

我设法在家用PC上将其从基于Windows的本地git存储库传输到本地运行的jenkins服务器.

and I managed to get that working on my home pc from a local windows-based git repo to my locally running jenkins server.

基本上,这涉及创建提交后挂钩并通过cURL调用特殊的Jenkins git端点.唯一的问题是,我的组织未在USS上安装cURL,因此我们必须通过ssh进行所有操作.

Basically, this involves creating a post-commit hook and invoking a special Jenkins git endpoint via cURL. The only issue is, my organization did not install cURL on USS, so we have to do everything over ssh.

是否有一种方法可以在USS系统上创建提交后的挂接脚本,该脚本在Windows上调用jenkins构建而不使用cURL(可能是ssh)?

Is there a way to create a post-commit hook script on a USS system that invokes a jenkins build on windows without using cURL (likely ssh)?

我的设置是:z/os上的git(提交)->触发jenkins管道(在Windows上)->要做一些工作,在

My setup is: git on z/os (commit) -> trigger jenkins pipeline (on windows) -> which does some stuff to build, populate various repos on

推荐答案

最近更新了Durable-Task-Plugin,以解决SSH和编码问题.这应该有帮助:

The Durable-Task-Plugin was recently updated to fix issues with SSH and encoding. This should help:

https://wiki.jenkins.io/display/JENKINS/Durable + Task +插件

Changelog版本1.29(2019年1月31日)
增强功能:在sh步骤中添加了对z/OS Unix系统服务的支持. (JENKINS-37341)

Changelog Version 1.29 (Jan 31, 2019)
Enhancement: Add support for z/OS Unix System Services to the sh step. (JENKINS-37341)

这篇关于触发詹金斯建立通过ssh吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆