有没有任何占位符显示提交的分支名称是git --pretty=format(在git log和git show中)?
喜欢%H提交哈希?
我正在尝试在Jenkins上使用Gradle运行构建任务,但是Gradle无法运行。
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Run Code Online (Sandbox Code Playgroud)
参数-Xmx2048m显然在Java中用于运行Gradle进程。如果此参数有问题,应在哪里更改?(詹金斯配置为-Xmx1024m)。我正在具有1GB RAM的设备上运行它(运行任务之前大约有700-500MB的可用空间)。
完整日志:http : //pastebin.com/BBsjp5pZ
我有打字稿更换问题$(this)与$(_this)和破译密码,因为test指window.
$(".class").click(() => {
var test = $(this);
console.log(test);
});
Run Code Online (Sandbox Code Playgroud)
编译成
$(".class").click(function () {
var test = $(_this);
console.log(test);
});
Run Code Online (Sandbox Code Playgroud)