小编Chr*_*tra的帖子

TFS | VSTS - 自定义构建任务执行无法找到VstsTaskSdk.psd1

我的团队正在开发一个利用vsts-task-lib的TFS/VSTS自定义构建任务.

我们按照此github页面上的说明将其包含在您的自定义任务中.

我在本地安装了vsts-task-lib以进行交互式测试,并且执行正常.我可以将扩展程序上传并安装到我的VSTS帐户/项目中.

但是,当我对所有内容进行排序并在VSTS上执行Release时,我会得到以下结果:

2016-12-22T21:41:27.4700501Z ##[section]Starting: ApprendaDeploy 

2016-12-22T21:41:27.5110766Z ==============================================================================

2016-12-22T21:41:27.5120761Z Task         : Deploy App on Apprenda

2016-12-22T21:41:27.5120761Z Description  : This task deploys your application onto ACP

2016-12-22T21:41:27.5120761Z Version      : 0.1.0

2016-12-22T21:41:27.5120761Z Author       : Apprenda

2016-12-22T21:41:27.5120761Z Help         : Replace with markdown to show in help

2016-12-22T21:41:27.5120761Z ==============================================================================

2016-12-22T21:41:27.8483971Z ##[error]File not found: 'C:\a\_tasks\ApprendaDeploy_fb765e50-c211-11e6-9471-0d5c99017b97\0.1.0\ps_modules\VstsTaskSdk\VstsTaskSdk.psd1'

2016-12-22T21:41:27.8553964Z ##[section]Finishing: ApprendaDeploy 
Run Code Online (Sandbox Code Playgroud)

我正在使用vsts-task-lib v0.8.0,我的任务根文件目录如下所示:

|-- apprendaDeploy <task root>
  |----- ps_modules
     |----- VstsTaskSDK
        |----- 0.8.0
            |------ <corresponding sdk files, including VstsTaskSdk.psd1>
  |----- common.ps1
  |----- deploy.ps1 …
Run Code Online (Sandbox Code Playgroud)

powershell tfs azure-devops

7
推荐指数
1
解决办法
2648
查看次数

RestKit - 错误域代码1001

好的,所以我几乎回顾了这个网站上的每一个其他问题都无济于事.

这是我从REST服务返回的JSON:

{
 "errors" :     {};
 "result" :     {
    "messagebody" : "Hello!";
    "timestamp" : "2014-08-21T04:12:28.4689099+00:00";
 };
 "success" :    {};
}
Run Code Online (Sandbox Code Playgroud)

我试图通过RestKit v0.20.3提取结果对象

这是我的代码块,它被配置/执行:

- (void) configureRestKit
{

NSURL *cminstance = [NSURL URLWithString:@"http://<domain>"];
AFHTTPClient *cmclient = [[AFHTTPClient alloc] initWithBaseURL:cminstance];

RKObjectManager *objmgr = [[RKObjectManager alloc] initWithHTTPClient:cmclient];

RKObjectMapping *messageMap = [RKObjectMapping mappingForClass:[Message class]];
[messageMap addAttributeMappingsFromDictionary:@{ @"messagebody" : @"messagebody", @"timestamp": @"timestamp"}];
messageMap.forceCollectionMapping = YES;
RKResponseDescriptor *descriptor =
[RKResponseDescriptor
 responseDescriptorWithMapping:messageMap
 method:RKRequestMethodGET
 pathPattern:@"/v1/app/e51cb2dd24af47a49232b942210e758d/text?f=test"
 keyPath:@"result"
 statusCodes:RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)];
[objmgr addResponseDescriptor:descriptor];
}

- (IBAction)helloButtonClicked:(id)sender {

[[RKObjectManager sharedManager].HTTPClient setDefaultHeader:@"X-App-ApiKey" value:@"2c130c75dc9f4c2c8ef7c8753e8b7c56"];
NSLog(@"ResponseDescriptors …
Run Code Online (Sandbox Code Playgroud)

json ios restkit-0.20

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

标签 统计

azure-devops ×1

ios ×1

json ×1

powershell ×1

restkit-0.20 ×1

tfs ×1