在网上和Jenkins插件环顾四周,我没有找到解决方案的运气.有谁知道Jenkins中的参数化构建是否有"隐藏"参数?即,我想添加一个无法更改的参数类型,并且在按下"Build Now"时不会显示.
Elixir 似乎是一种很棒的语言。但是声明全局常量的最佳约定是什么?
我希望模块属性可能是最合适的解决方案?
交换下面的 Horizontal_line 定义可以修复编译错误。
defmodule ElixirTesting do
horizontal_line = String.duplicate("-", 80)
# def horizontal_line, do: String.duplicate("-", 80)
def test_global_constant do
IO.puts(horizontal_line)
IO.puts("Console Report Section Title")
IO.puts(horizontal_line)
true
end
end
Run Code Online (Sandbox Code Playgroud)