标签: teamcity

Docker Compose“不允许卷附加属性”或“卷必须是映射”

我正在使用 Maven 插入 docker compose 文件,以便映射 Linux 和 Windows 中的工作目录。插值在两种操作系统上都按预期工作。在我的本地 Windows 环境中,当运行“docker compose up”时,我获得了两个具有映射卷(已存在于主机上)的容器,而没有在顶层指定“volumes:” ,仅在服务级别指定。

但是,如果我尝试在基于 Linux 的 TeamCity 中运行相同的设置,我会收到以下消息“服务“job_controller”引用未定义的卷路径/到/目标/类:无效的撰写项目”

从这里检查其他人的答案后,我明白我还必须在顶层指定“volumes:”,这是我在撰写文件的底部所做的。

现在,系统提示我“不允许卷附加属性 /opt/buildagent/work/9857567c5e342350/path/to/target/classes”

name: Distributed
services:
  create_database:
    container_name: create_database
    command:
    - ./script.sh
    - deployer
    - -f
    - ../config/product-mssql-v11.manifest.yaml
    - drop-create-database-properties
    image: alpine-3-corretto-11-wildfly-11.11.0-SNAPSHOT
    networks:
    - deploy
    volumes:
    - C:\\SourceCode\\Path\\to\\target/classes:/opt/product/config
    healthcheck:
     test: ["CMD", "/opt/product/script.sh", "deployer", "-f", "/opt/product/config/product-mssql-v11.manifest.yaml", "healthy"]
     interval: 20s
     timeout: 60s
     retries: 5

  job_controller:
    container_name: job_controller
    environment:
      DEPLOYMENT_MANIFEST: /opt/product/config/main.manifest.yaml
      PROPERTIES_FILE_NAME: /opt/product/config/risk-wildfly.properties
      JAVA_OPTS: "-Xms1g -Xmx4g -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=1g -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true" …
Run Code Online (Sandbox Code Playgroud)

teamcity docker docker-compose

1
推荐指数
1
解决办法
2万
查看次数

使用TeamCity运行构建时获取MSBuild错误MSB3202

我被赋予了为我们的小型.Net商店研究和实施CI的任务.在进行研究之后,我们选择了TeamCity进行自动化构建.安装TeamCity和MSBuild非常简单,但问题是我开始构建时.我总会得到一个错误.从事物的外观来看,它正试图调用共享库项目,所以我做的第一件事是编辑VCS以包含共享库,但这并没有解决问题.

请查看构建中的日志,如果需要通过TeamCity或VS 2008配置MSBuild,请告诉我们?

[09:32:29]: Checking for changes
[09:32:31]: Clearing temporary directory: C:\Program Files\TeamCity\BuildAgent\temp\buildTmp
[09:32:31]: Checkout directory: C:\Program Files\TeamCity\BuildAgent\work\18eca7a0915880c3
[09:32:31]: Updating sources: server side checkout... (3s)
[09:32:31]: [Updating sources: server side checkout...] Building incremental patch for VCS root: Shared Libraries
[09:32:33]: [Updating sources: server side checkout...] Building incremental patch for VCS root: My TFS Two
[09:32:35]: [Updating sources: server side checkout...] Repository sources transferred
[09:32:35]: Project "Apollo.sln.teamcity.patch.tcprojx" (TeamCity_Generated_Build 
target(s)):
[09:32:36]: [Project "Apollo.sln.teamcity.patch.tcprojx" (TeamCity_Generated_Build target(s)):] ..\..\..\Shared Libraries\Local.Data\v2\Local.Data.csproj warning MSB4122: Scanning project dependencies …
Run Code Online (Sandbox Code Playgroud)

msbuild teamcity

0
推荐指数
1
解决办法
1万
查看次数

是否可以轻松更改大量TeamCity VCS根目录中的SVN URL?

有谁知道一次在大量VCS根目录上更改SVN网址的方法?我们的SVN服务器正在改变它的基本URL,并且通过TC接口手动更改的VCS根目录太多了.

我们使用SQL Server作为TeamCity的数据库,因此我将围绕架构进行讨论.这似乎不是一个好主意.

teamcity

0
推荐指数
1
解决办法
298
查看次数

如何为nant指定vb6.exe位置

我正在尝试将我们从旧的基于CruiseControl的构建服务器迁移到新的TeamCity,并且遇到了我们仍然拥有的旧的基于VB6的组件的问题.

我们正在使用Nant脚本,这使得任务更容易,但我遇到了使用vb6 nant任务的障碍.我已经安装了nant.contrib.tasks,以便现在可以识别标签,但我仍然收到错误...

[Step 1/1] D:\TeamCity\buildAgent\work\d2bf2472d554430\VB6Web\VB6Web.build(157,8):
'vb6' failed to start.
[Step 1/1] Step VB6Web Build (NAnt) failed.
Run Code Online (Sandbox Code Playgroud)

我知道这个错误"'vb6'无法启动." 通常意味着它找不到vb6.exe但我看不到如何在脚本中指定它.

根据doco.,"exename"是"应该用于启动外部程序的可执行文件的名称".但被指定为"框架可配置参数".我已经尝试将它作为属性添加到vb6标记,但是它给出了一个意外的属性错误.

我似乎无法找到一个如何在任何地方指定vb6.exe路径作为框架可配置参数的示例...请帮助.

vb6 nant teamcity nantcontrib

0
推荐指数
1
解决办法
937
查看次数

为什么我的报告会被跳过? - TeamCity CI

我无法弄清楚为什么我的报告被跳过了.我的TeamCity CI(8.0.0)日志说"167个报告已被过时".是因为"parseOutOfDate"是假的吗?http://confluence.jetbrains.com/display/TCD7/Build+Script+Interaction+with+TeamCity

TeamCity BuildLog

Checking for changes
[14:53:22]Checkstyle report watcher
[14:53:22]Watching paths:
[14:53:22]/Applications/buildAgent/work/84ee385a4d5ae77b/www/**
[14:53:22]Publishing internal artifacts
[14:53:22]Sending build.start.properties.gz file
[14:53:22]Sending build.start.properties.gz file
[14:53:22]Clearing temporary directory: /Applications/buildAgent/temp/buildTmp
[14:53:22]Checkout directory: /Applications/buildAgent/work/84ee385a4d5ae77b
[14:53:22]JSLint report watcher
[14:53:22]Watching paths:
[14:53:22]/Applications/buildAgent/work/84ee385a4d5ae77b/www/**
[14:53:22]Updating sources: server side checkout
[14:53:22]Building incremental patch for VCS root: cp-edna-hybrid Repository
[14:53:22]FindBugs report watcher
[14:53:22]Watching paths:
[14:53:22]/Applications/buildAgent/work/84ee385a4d5ae77b/www/**
[14:53:22]Repository sources transferred
[14:53:23]Checkstyle report watcher
[14:53:23]167 reports found for paths:
[14:53:23]/Applications/buildAgent/work/84ee385a4d5ae77b/www/**
[14:53:23]167 reports skipped as out-of-date
[14:53:23]JSLint report watcher
[14:53:23]167 reports found for paths: …
Run Code Online (Sandbox Code Playgroud)

teamcity continuous-integration teamcity-8.0

0
推荐指数
1
解决办法
2657
查看次数

如何使用TeamCity REST API获取QUEUE中的构建

使用" https://teamcity.com/app/rest/builds/ {buildLocator}?locator = running:any"API可以获取所有正在运行和已完成的构建,但无法获取队列中的构建.

如何在队列中获取构建?有谁知道吗?谢谢!

queue rest teamcity

0
推荐指数
1
解决办法
885
查看次数

使用TeamCity REST API更新值时不受支持的媒体类型

我有一个Powershell脚本,用于同步各种项目参数。我用来更新项目参数的相关代码是:

$propName = "ReleaseNumber"
$propValue = "10.0"
Invoke-RestMethod -method Put -uri "$server/httpAuth/app/rest/projects/$targetProject/parameters/$propName" -Body "$propValue"
Run Code Online (Sandbox Code Playgroud)

升级到TeamCity 9.1之后,使用脚本时我开始收到以下错误:

Invoke-RestMethod:远程服务器返回错误:(415)不支持的媒体类型。

我需要怎么做才能解决此问题?

powershell teamcity teamcity-9.0

0
推荐指数
1
解决办法
2867
查看次数

TeamCity 记录 UTF8 - Powershell 脚本

我创建了 powershell 脚本以在 TeamCity 上的一个步骤中读取文件。如果我在 Powershell 应用程序中读取文件并放置下一个脚本,它可以正常工作,但是当在运行程序类型“PowerShell”的步骤中执行该文件时,编码不起作用并且某些字符没有编码(例如“áãéí”等,等等)

$userDocuments = [environment]::getfolderpath("mydocuments")
$file= "myfile.txt"
$fullPath = Join-Path $userDocuments -ChildPath $file
Get-Content -Encoding UTF8 $fullPath
Run Code Online (Sandbox Code Playgroud)

有人帮我好吗?

提前致谢

powershell teamcity encoding readfile

0
推荐指数
1
解决办法
1086
查看次数

TeamCity + 行尾,C# 多行逐字字符串

我有以下格式的多行字符串:

@"Text on Line 1
Text on Line 2."
Run Code Online (Sandbox Code Playgroud)

当我在 Visual Studio 中构建测试并使用 VS Developer cmd 运行时,它运行良好并比较预期字符串与实际字符串。

但是当使用 MSBuild 或 VS sln 在 teamcity 上运行时,它只喜欢我的多行字符串,当它们采用以下格式时,带有“\r\n”且没有 @ 符号。并将上述格式视为没有换行符。

"Text on Line 1\r\nText on Line 2."
Run Code Online (Sandbox Code Playgroud)

我用测试反编译了 dll 文件,teamcity 正在生成,而不是“\r\n”,逐字多行字符串中的所有新行字符都被替换为“\n”,因此可能是新行结尾的 teamcity 问题。

我可以继续更改我所有的字符串格式,但正在寻找避免它的解决方案。谢谢!

c# msbuild teamcity line-endings multiline

0
推荐指数
1
解决办法
621
查看次数

Teamcity - 多个 docker 注册表凭据

我需要使用 Dockerfile 构建 docker 映像,然后将其推送到我们的私有 docker 注册表。问题是在 Dockerfile 中我们有:

FROM docker_image_on_docker_hub

因此 TC 需要存储和使用 docker hub 访问凭据。但是,一旦构建完成,就需要将映像推送到我们的私有 docker 注册表。

我知道我可以使用Command Line带有可以运行的脚本的运行程序来做到这一点docker login ...,但是......是否可以仅使用构建功能、连接(其他任何东西)来做到这一点?

teamcity docker

0
推荐指数
1
解决办法
3749
查看次数

TeamCity在幕后使用Jenkins吗?

我的同事告诉我,TeamCity只是Jenkins有一个不同的前端(就像Teamcity使用Jenkins一样......).

真的吗?我无法在网上找到这些信息.

teamcity jenkins

-5
推荐指数
1
解决办法
697
查看次数