我试图创建一个元运行器来使用TeamCity中的powershell生成元数据文件,我想知道是否有办法迭代不同的vcs路由?
我的代码:
$fileName = "metadata.json"
$vcsArray = @()
for ($i = 0; $i -le 5; $i++)
{
$vcsObject= @{
"VCSNumber"="%build.vcs.number.Proj_App_TcTestApp%"
}
$vcsArray += $vcsObject
}
$content = @{
"TeamCityBuildLogUrl" = "http://teamcity.hps.com/viewLog.html?buildId=%teamcity.build.id%&tab=buildResultsDiv&buildTypeId=%system.teamcity.buildType.id%";
"TeamCityProjectName" = "%system.teamcity.projectName%";
"TeamCityBuildNumber" = "%system.build.number%";
"BuildDateGenerated" = (Get-Date).ToString();
"TeamCityExecutionAgentName" = "%teamcity.agent.name%";
"VCSes" = $vcsArray
}
}
$content = $content | Add-Member @{"VCS Version2" = "testValue"} -PassThru # How to add more members dynamically.
$content = ConvertTo-JSON $content
New-Item $fileName -type file -force -value "// Metadata file generated by …Run Code Online (Sandbox Code Playgroud) 有谁知道如何moreutils在 Centos8 上安装吗?
我收到此错误:
[root@default-bento-centos-8 vagrant]# dnf install moreutils
Last metadata expiration check: 0:19:17 ago on Tue 17 Aug 2021 08:27:50 PM UTC.
Error:
Problem: conflicting requests
- nothing provides perl(IPC::Run) needed by moreutils-0.63-1.el8.x86_64
- nothing provides perl-IPC-Run needed by moreutils-0.63-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@default-bento-centos-8 vagrant]# dnf -y --enablerepo=PowerTools install moreutils
Error: Unknown repo: 'PowerTools'
Run Code Online (Sandbox Code Playgroud)
我已经安装了epel-release和perl软件包。
我一直试图让opentable/win-2012r2-standard-amd64-nocm盒子站起来以便与厨师混淆,但不幸的是它似乎没有起作用.
眼镜:
方法1:试图放浪起来的OpenTable的/ WIN-2012r2标准,AMD64的nocm盒为了以防大厨一塌糊涂.
问题:它似乎不想挂载vagrant文件夹,因为它不喜欢当前安装的guest虚拟机插件.
Alexs-MacBook-Pro:chef-repo alex$ vagrant up
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'opentable/win-2012r2-standard-amd64-nocm'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'opentable/win-2012r2-standard-amd64-nocm' is up to date...
==> …Run Code Online (Sandbox Code Playgroud)