首页 \ 问答 \ 如何在Ubuntu中设置Jenkins中的ANT_HOME(How to set ANT_HOME in Jenkins in Ubuntu)

如何在Ubuntu中设置Jenkins中的ANT_HOME(How to set ANT_HOME in Jenkins in Ubuntu)

我是Ubuntu的新手。我已经使用apt-get install ant然后我尝试了which ant显示路径/usr/bin/ant我在Jenkins ANT_HOME中包含了相同的路径但是它显示/usr/bin/ant不是我尝试在.bashrc文件中添加ANT_HOME。我应该怎么做才能在Jenkins中设置ANT_HOME。请帮助


I am new to Ubuntu.I have installed ant using apt-get install ant then I tried which ant which showed the path /usr/bin/ant I included the same path in Jenkins ANT_HOME but it shows /usr/bin/ant is not a directory.I tried adding the ANT_HOME in .bashrc file .what should I need to do to set the ANT_HOME in Jenkins.Please help


原文:https://stackoverflow.com/questions/28343850
更新时间:2022-11-09 08:11

最满意答案

使用负向前瞻 (?!...)

/link\.com(?!:\d)/

var link = "http://link.com:8000/?alert=true";
var re = /link\.com(?!:\d)/;
if (re.exec(link)) {
  console.log("hello");
} else {
  console.log("no match");  
}

Regex101演示


Use a negative lookahead (?!...)

/link\.com(?!:\d)/

var link = "http://link.com:8000/?alert=true";
var re = /link\.com(?!:\d)/;
if (re.exec(link)) {
  console.log("hello");
} else {
  console.log("no match");  
}

Regex101 Demo

相关问答

更多
  • 您的问题不清楚,但如果您要包含备用Unicode数字表单(例如Unicode全角字符),则可以添加如下显式Unicode范围: // Adds the full-width unicode range FF10-FF19 ( 0-9) var urlRegex = /[+0-9\uFF10-\uFF19]+(?:\.[0-9\uFF10-\uFF19]*)?[0-9\uFF10-\uFF19]{5,}/g; 一个工作的例子。 您可以通过添加其他范围来添加它们。 我很想修改你的代码,这样你可以减少重复 ...
  • 使用负向前瞻 (?!...) /link\.com(?!:\d)/ var link = "http://link.com:8000/?alert=true"; var re = /link\.com(?!:\d)/; if (re.exec(link)) { console.log("hello"); } else { console.log("no match"); } Regex101演示 Use a negative lookahead (?!...) /link\.com ...
  • 您可以使用: $re = '/[^-.]+(?=\.aspx)/i'; preg_match($re, $input, $matches); //=> 146370543 这将匹配文本而不是连字符而不是点,然后使用前瞻(?=\.aspx)后跟.aspx 。 RegEx演示 You can use: $re = '/[^-.]+(?=\.aspx)/i'; preg_match($re, $input, $matches); //=> 146370543 This will match text no ...
  • 你所拥有的将匹配你指定的所有这些(见下文)。 您应该检查以确保(a)您没有先前匹配的URL模式和(b)包含此模式(一个常见的罪魁祸首是使用urlpatterns = ...而不是urlpatterns += ...初始化之后)。 >>> import re >>> urlpattern = re.compile(r'^(?P[A-Za-z0-9-]+)/$') >>> urlpattern.match('tom/').group('name') 'tom' >>> urlpattern.matc ...
  • Regex可能不是这份工作的正确工具。 看起来在任何情况下,使用URL解析器分割URL都会更有意义。 在您的示例中,数字部分似乎总是URL的路径部分中的最后一项。 我不确定你使用的是什么语言,但许多语言提供的功能可以将URL解析为其组成部分。 $path = parse_url($url, PHP_URL_PATH); if(strpos($path, "/p/") === 0) { $base = basename($path); } else { // error } 每次工作,假设$ ...
  • 反过来说:如果网址匹配^ group / [0-9] + /。+,则它是一个新组,因此首先重定向这些(使用[L]规则)。 其他一切都必须是一个老组,你可以保留旧的规则。 Think the other way around: If the url matches ^group/[0-9]+/.+, then it is a new group, so redirect these first (with a [L] rule). Everything else must be a old group, yo ...
  • 此正则表达式应根据您的约束检查简单方案。 你可以很容易地玩它并改进它(我强烈推荐,首先是因为它在这种状态下非常简单,其次因为你是一个正则表达式的初学者:)) 。 ^(http|https):\/\/[\w\d]+\.[\w]+(\/[\w\d]+)$ 在Regex 101上查看 基本解释: (http|https):\/\/ 应该以http或https开头,然后是:// [\w\d]+ 后跟N个字母和/或数字 \.[\w]+ 后跟一个dot和一组字母。 例如: .com , .net等(请注意,您必 ...
  • 你可以使用这个基于前瞻性的正则表达式: \d+(?=\D*$) RegEx演示 的.htaccess: 在你的root .htaccess中你可以使用这个重写规则: RewriteEngine On RewriteRule ^directoryname/.*?(\d+)\D*$ /detail-page?id=$1 [L,QSA,NC,R] 参考: Apache mod_rewrite简介 Apache mod_rewrite技术细节 Apache mod_rewrite深入细节 You can us ...
  • 所以过了一段时间,我设法让它工作。 ^(\(?\+?[0-9]*\)?)?[0-9\- \(\)]{10,}?([ext]+?[0-9]{3,})?$ 似乎发件人的电子邮件搞砸了角色,并在那里插入了疯狂的东西。 So after a while I managed to make it work. ^(\(?\+?[0-9]*\)?)?[0-9\- \(\)]{10,}?([ext]+?[0-9]{3,})?$ It seems that it's the email of the sender tha ...
  • 这是我能找到的最完整的正则表达式。 我为别人的正则表达式添加了评论,因为他们会在/test/test-上失败(他们的正则表达式可以接受)。 ^\/[a-zA-Z0-9]+([-\/](?:[a-zA-Z0-9]+))*(\.(?:jpe?g|gif|png|html?))?$ 看到这里 。 如果你需要匹配结果(例如/test--test ),你可以使用下面的正则表达式,如下所示。 ^\/[a-zA-Z0-9]+((?:-+|\/)(?:[a-zA-Z0-9]+))*(\.(?:jpe?g|gif|png| ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)