假设我有一个Test.csv文件,它是
Screen Name,Tweet ID,Dates,Tweets
OilGasMalaysia,5.21E+17,10/13/2014,Dropping Oil Prices Send Shockwaves Through Energy Sector - http://t.co/2dne6NGwRE http://t.co/hRUXjEQGCz
OilBRK,5.22E+17,10/13/2014,Oil prices down in Asian trade as weak demand weighs: Oil prices fell in Asian
在Jenkins中定义活动选择反应性参数时,是否有一种使用全局管道库的方法?
我在Jenkins中添加了一个全局管道库,比方说PipelineLibrary,通过使用@Library('PipelineLibrary') _加载它,我可以在管道中成功地使用它。在这个库中,我有一个全局函数foo.bar(),当向我的几个作业添加一个活动选择反应参数时,我也想在Groovy脚本框中使用这个函数。
因此,我希望在该参数的Groovy脚本框中有这样的内容:
// Somehow take into use PipelineLibrary
return foo.bar();
在这里加载库