我收到JellyException:无法解析Jelly脚本:null [英] I'm getting JellyException: Could not parse Jelly script : null

查看:187
本文介绍了我收到JellyException:无法解析Jelly脚本:null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我们的项目在Jenkins中配置一些功能. 在配置可编辑电子邮件通知的过程中,我在$ JENKINS_HOME/email-templates文件夹中创建了一个新的果冻脚本文件,如下所示

I'm trying to configure some features in Jenkins for our project. In the process of configuring Editable Email Notification, I have created a new jelly script file in $JENKINS_HOME/email-templates folder as shown here

并像这样在Jenkins配置中访问它

and accessing it in Jenkins config like this

使用这些设置构建作业时,我会收到包含内容的电子邮件 "JellyException:无法解析Jelly脚本:null"

When I build the job, with these setting, I'm getting email with the content "JellyException: Could not parse Jelly script : null"

提前谢谢!

推荐答案

更新Jenkins安装后,我遇到了类似的问题.我使用电子邮件模板测试"功能来验证我的脚本,但一直得到

I faced a similar issue after I updated my Jenkins installation. I used the "Email Template Testing" feature to verify my script, but kept getting

JellyException:无法解析Jelly脚本:null

JellyException: Could not parse Jelly script : null

在我的情况下,问题是由于在我的果冻脚本中使用了 jelly:util 库引起的.该脚本使用了u:loadText和u:file标记.

In my case the issue was caused because of the use of jelly:util library in my jelly script. The script used u:loadText and u:file tags.

似乎Jenkins的较新版本不包含使用util标签所需的jelly:util库.我通过手动放置

It seems that newer version of Jenkins do not include the jelly:util library, required for using the util tags. I resolved the issue by manually placing the commons-jelly-tags-util-1.1.1.jar file in the \war\WEB-INF\lib directory of Jenkins and restarting it.

这篇关于我收到JellyException:无法解析Jelly脚本:null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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