大学一年后我回来工作,发现我最初托管在本地TFS安装上的项目已移到Visual Studio在线.剩下的是没有分支的扁平文件夹结构.我将所有以前的分支转换回分支,但是如何重新建立它们之间的关系,以便我不必在一年的更新中进行艰苦的毫无根据的合并?
我们的一位客户使用基于Team Foundation Server(TFS)功能的Visual Studio Online(http://www.visualstudio.com/en-us/products/what-is-visual-studio-online-vs.aspx) )
我们正在研究如何使用Visual Studio Online帐户进行自动构建和自动化单元测试.
使用Visual Studio 2012 IDE,我能够在Hosted Build Service中设置构建.但是,我的单元测试需要一个Microsoft SQL Server数据库才能正常运行,我已经在我的开发工作站上安装了它.
为了运行我的测试,我需要让我的数据库在构建代理上的SQL实例中运行.
是否可以在Hosted Build Agent上安装SQL Server,如果可以,如何安装?
我目前无法删除本地Windows 10计算机上的TFVC工作区.这是我创建的私人工作区.该机器未加入域,我是该机器的管理员.我收到以下错误:
D:\Projects\Active\SPE-DEV>tf workspace /delete MYWORKSPACE
A deleted workspace cannot be recovered.
Workspace 'MYWORKSPACE' on server 'https://ourcompany.visualstudio.com/defaultcollection' has 0 pending change(s).
Are you sure you want to delete the workspace? (Yes/No) y
TF204017: The operation cannot be completed because the user (Greg Enslow) does not have one or more required permission
s (Administer) for workspace MYWORKSPACE;Greg Enslow.
Run Code Online (Sandbox Code Playgroud)
如果我尝试从Visual Studio UI中删除它,我会收到相同的消息.我可以手动删除工作区中的所有文件和文件夹,但TFS会重新创建一个带有隐藏$ tf文件夹的根文件夹.
今天早上我卸载了Visual Studio 2015 Enterprise(只有试用许可证)并安装了Visual Studio 2015 Professional(我公司有此许可证).我确定这是一个因素,但我的VS团队服务权限根本没有改变.
我曾经使用TFS进行源控制和完整ALM的许多项目,包括票证级别任务,功能和错误跟踪.
我还使用Git和VSO,但是当Git用作源控制选项时,从未见过使用TFS进行任务,功能和错误跟踪的项目.
设置是否可行且简单,并且在没有任何棘手步骤的情况下使用完整的ALM?
谢谢.
在azure devops构建管道上的“托管”和“托管VS2017”有什么区别?
azure azure-devops azure-pipelines azure-devops-hosted-agent
我有一个在Azure云上运行的群集。我在该群集上部署了对等服务。但是没有创建用于该部署的pod。我还扩大了该脱销的副本集。
即使当我尝试创建简单的docker busybox映像部署时,它也无法创建Pod。
请指导我可能是什么问题?
编辑
用于描述部署的输出
Name: peer0-org-myorg
Namespace: internal
CreationTimestamp: Tue, 28 May 2019 06:12:21 +0000
Labels: cattle.io/creator=norman
workload.user.cattle.io/workloadselector=deployment-internal-peer0-org-myorg
Annotations: deployment.kubernetes.io/revision=1
field.cattle.io/creatorId=user-b29mj
field.cattle.io/publicEndpoints=null
Selector: workload.user.cattle.io/workloadselector=deployment-internal-peer0-org-myorg
Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType: Recreate
MinReadySeconds: 0
Pod Template:
Labels: workload.user.cattle.io/workloadselector=deployment-internal-peer0-org-myorg
Annotations: cattle.io/timestamp=2019-06-11T08:19:40Z
field.cattle.io/ports=[[{"containerPort":7051,"dnsName":"peer0-org-myorg-hostport","hostPort":7051,"kind":"HostPort","name":"7051tcp70510","protocol":"TCP","sourcePort":7051},{"containerPo...
Containers:
peer0-org-myorg:
Image: hyperledger/fabric-peer:1.4.0
Ports: 7051/TCP, 7053/TCP
Host Ports: 7051/TCP, 7053/TCP
Environment:
CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS: couchdb0:5984
CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD: root
CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME: root
CORE_LEDGER_STATE_STATEDATABASE: CouchDB
CORE_LOGGING_CAUTHDSL: INFO
CORE_LOGGING_GOSSIP: WARNING
CORE_LOGGING_GRPC: WARNING
CORE_LOGGING_MSP: WARNING …Run Code Online (Sandbox Code Playgroud) 我在 Azure DevOps 存储库中有一个 git 存储库,我还设置了一个测试用户故事。
我克隆了 master 分支并在 VSCode 中打开它,然后在提交时我使用扩展自动选择我的用户故事,将 #ID 添加到提交消息,然后将更改推送回 master 分支。
当我在 DevOps 中查看我的用户故事时,没有链接签入。
我是否缺少某种链接,我的 VSCode 已连接到我的 DevOps,并且当我使用添加工作项选项时,它能够在 VSCode 中列出用户故事,没问题,所以不确定是什么问题。假设这不是我必须从用户故事创建分支并在那时链接它的一种方式?
我的 Azure DevOps 管道使用来自两个不同存储库的 yaml 模板,其配置如下。
模板存储库作为根模板中的资源被引用。我没有找到只检出模板存储库一次然后在所有管道阶段使用模板和脚本的方法。现在,我必须在需要使用其他模板或脚本的每个阶段手动克隆模板存储库。在每个阶段结束时,Azure Devops 会清除克隆的存储库。是否有一种简单的方法可以只检出模板 repo 一次,或者以其他方式从子阶段引用其资源?
在 Azure DevOps 中,我有我的公司nuget存储库。我创建了一些新的 nuget 包,并将它们包含在我的项目中。在本地,项目运行良好。
当我dotnet build在 DevOps 上运行时出现错误,因为对 nuget 存储库进行了未经授权的访问。
[错误]C:\Program Files\dotnet\sdk\3.1.202\NuGet.targets(124,5):错误:无法加载源https://vs.pkgs.visualstudio.com/Vs/的服务索引 _packaging/vs.com/nuget/v3/index.json。
响应状态代码不表示成功:401(未授权)。
C:\Program Files\dotnet\sdk\3.1.202\NuGet.targets(124,5): 错误:无法加载源https://vs.pkgs.visualstudio.com/Vs/_packaging/vs的服务索引 .com/nuget/v3/index.json。[d:\a\1\s\Payments\Payments.csproj]
C:\Program Files\dotnet\sdk\3.1.202\NuGet.targets(124,5): 错误:响应状态代码不表示成功:401(未经授权)。[d:\a\1\s\PiP.Payments.Stripe\PiP.Payments.csproj]
构建失败。
C:\Program Files\dotnet\sdk\3.1.202\NuGet.targets(124,5): 错误:无法加载源https://vs.pkgs.visualstudio.com/Vs/_packaging/vs的服务索引 .com/nuget/v3/index.json。[d:\a\1\s\PiP.Payments.Stripe\PiP.Payments.csproj]
C:\Program Files\dotnet\sdk\3.1.202\NuGet.targets(124,5): 错误:响应状态代码不表示成功:401(未经授权)。
我遵循了本教程(使用 Azure DevOps 为 Python Flask 构建 DevOps CI/CD 管道)。有一个命令行任务来执行功能测试,我在运行它时遇到错误。
命令行任务脚本如下:
pip install selenium && pip install pytest && pytest Tests/functional_tests/ --webAppUrl=$(webAppUrl.AppServiceApplicationUrl) --junitxml=TestResults/test-results.xml
Run Code Online (Sandbox Code Playgroud)
这是用于功能测试的脚本:
import pytest
from selenium import webdriver
import unittest
import os
import sys
import pytest
import time
class FunctionalTests(unittest.TestCase):
def setUp(self):
options = webdriver.ChromeOptions()
options.add_argument('--no-sandbox')
self.driver = webdriver.Chrome(os.path.join(os.environ["ChromeWebDriver"], 'chromedriver.exe'), chrome_options=options)
self.driver.implicitly_wait(300)
def test_selenium(self):
webAppUrl = pytest.config.getoption('webAppUrl')
start_timestamp = time.time()
end_timestamp = start_timestamp + 60*10
while True:
try:
response = self.driver.get(webAppUrl)
title = self.driver.title
self.assertIn("Home Page …Run Code Online (Sandbox Code Playgroud) azure-devops ×10
azure ×3
tfs ×3
.net-core ×1
alm ×1
azure-repos ×1
c# ×1
flask ×1
git ×1
kubernetes ×1
nuget ×1
pytest ×1
rancher ×1
sql-server ×1
tfsbuild ×1
unit-testing ×1