本文整理了Java中hudson.Functions.getCurrentJellyContext()
方法的一些代码示例,展示了Functions.getCurrentJellyContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Functions.getCurrentJellyContext()
方法的具体详情如下:
包路径:hudson.Functions
类名称:Functions
方法名:getCurrentJellyContext
[英]When called from within JEXL expression evaluation, this method returns the current JellyContext used to evaluate the script.
[中]从JEXL表达式求值中调用时,此方法返回用于求值脚本的当前上下文。
代码示例来源:origin: jenkinsci/jenkins
/**
* Evaluate a Jelly script and return output as a String.
*
* @since 1.267
*/
public static String runScript(Script script) throws JellyTagException {
StringWriter out = new StringWriter();
script.run(getCurrentJellyContext(), XMLOutput.createXMLOutput(out));
return out.toString();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* Evaluate a Jelly script and return output as a String.
*
* @since 1.267
*/
public static String runScript(Script script) throws JellyTagException {
StringWriter out = new StringWriter();
script.run(getCurrentJellyContext(), XMLOutput.createXMLOutput(out));
return out.toString();
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Evaluate a Jelly script and return output as a String.
*
* @since 1.267
*/
public static String runScript(Script script) throws JellyTagException {
StringWriter out = new StringWriter();
script.run(getCurrentJellyContext(), XMLOutput.createXMLOutput(out));
return out.toString();
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Evaluate a Jelly script and return output as a String.
*
* @since 1.267
*/
public static String runScript(Script script) throws JellyTagException {
StringWriter out = new StringWriter();
script.run(getCurrentJellyContext(), XMLOutput.createXMLOutput(out));
return out.toString();
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Evaluate a Jelly script and return output as a String.
*
* @since 1.267
*/
public static String runScript(Script script) throws JellyTagException {
StringWriter out = new StringWriter();
script.run(getCurrentJellyContext(), XMLOutput.createXMLOutput(out));
return out.toString();
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Evaluate a Jelly script and return output as a String.
*
* @since 1.267
*/
public static String runScript(Script script) throws JellyTagException {
StringWriter out = new StringWriter();
script.run(getCurrentJellyContext(), XMLOutput.createXMLOutput(out));
return out.toString();
}
代码示例来源:origin: org.jenkins-ci.plugins/credentials
if (attributes.containsKey("fillUrl")) {
try {
JellyContext jelly = Functions.getCurrentJellyContext();
Object it = jelly.findVariable("it");
if (it instanceof CredentialsStore) {
代码示例来源:origin: org.jenkins-ci.plugins/credentials
if (attributes.containsKey("autoCompleteUrl")) {
try {
JellyContext jelly = Functions.getCurrentJellyContext();
Object it = jelly.findVariable("it");
if (it instanceof CredentialsStore) {
代码示例来源:origin: jenkinsci/credentials-plugin
if (attributes.containsKey("fillUrl")) {
try {
JellyContext jelly = Functions.getCurrentJellyContext();
Object it = jelly.findVariable("it");
if (it instanceof CredentialsStore) {
代码示例来源:origin: jenkinsci/credentials-plugin
if (attributes.containsKey("autoCompleteUrl")) {
try {
JellyContext jelly = Functions.getCurrentJellyContext();
Object it = jelly.findVariable("it");
if (it instanceof CredentialsStore) {
代码示例来源:origin: jenkinsci/credentials-plugin
JellyContext jelly = Functions.getCurrentJellyContext();
Object it = jelly.findVariable("it");
if (it instanceof CredentialsStore) {
代码示例来源:origin: org.jenkins-ci.plugins/credentials
JellyContext jelly = Functions.getCurrentJellyContext();
Object it = jelly.findVariable("it");
if (it instanceof CredentialsStore) {
内容来源于网络,如有侵权,请联系作者删除!