我正在使用Jenkinsfile来编写管道脚本.
有没有办法在构建日志中禁用已执行的shell命令的打印?
这里只是jenkins管道的一个简单示例:
node{
stage ("Example") {
sh('echo shellscript.sh arg1 arg2')
sh('echo shellscript.sh arg3 arg4')
}
}
Run Code Online (Sandbox Code Playgroud)
在控制台日志中生成以下输出:
[Pipeline] node
Running on master in /var/lib/jenkins/workspace/testpipeline
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[testpipeline] Running shell script
+ echo shellscript.sh arg1 arg2
shellscript.sh arg1 arg2
[Pipeline] sh
[testpipeline] Running shell script
+ echo shellscript.sh arg3 arg4
shellscript.sh arg3 arg4
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS
Run Code Online (Sandbox Code Playgroud)
基本上我想禁用命令本身的打印.
+ echo shellscript.sh …Run Code Online (Sandbox Code Playgroud) 我刚开始使用clojure并且有一个关于core.clj的基本问题.
关于它的约定是什么?应该去哪些代码?公共API?
它是由leiningen在创建项目时生成的.我查看了一些库的源代码,这个文件也出现在那里(每个包?).
谢谢
我正在尝试将带有 (height:100%) 的 HOT 元素放置在position:fixed容器内。但是垂直滚动不起作用 - 只有 FF39、GC44 和 IE11 中的空白行。
我还尝试将 HOT 元素的高度动态设置为父容器的值,例如
var ex = $('#example').parent();
$('#example').height(ex.height());
Run Code Online (Sandbox Code Playgroud)
它在 GC 和 FF 中运行良好,但在 IE11 中滚动存在问题。如果将垂直滚动条移到底部,它会在 ~66700 处显示最后一行。但最后一行号应该是 100000。
<!DOCTYPE html>
<html>
<head>
<script src="http://handsontable.com/dist/handsontable.full.js"></script>
<link rel="stylesheet" media="screen" href="http://handsontable.com/dist/handsontable.full.css">
</head>
<body>
<div style="position:fixed;top:20px;bottom:0;left:0;right:0; overflow:hidden; border: 1px solid green">
<div style="position:fixed; top:40px;left:5px;right:5px;bottom:5px;border: 1px solid red">
<div id="example" style="overflow:auto; height:100%"></div>
</div>
</div>
<script type="text/javascript">
var data = Handsontable.helper.createSpreadsheetData(100000, 10);
var container = document.getElementById('example');
var hot = new Handsontable(container, {
data: …Run Code Online (Sandbox Code Playgroud)