小编lee*_*icw的帖子

VSTS 使用 API 在排队时设置构建参数

我需要从https://docs.microsoft.com/en-us/rest/api/vsts/build/builds/queue?view=vsts-rest-4.1记录的 REST API 中对 VSTS 构建进行排队

这个答案帮助我排队了一个基本的构建。我已成功使用个人访问令牌 (PAT) 进行身份验证和此 ​​json 有效负载

{
    definition: {
        id: 19,
    }
}
Run Code Online (Sandbox Code Playgroud)

我还需要将变量传递到构建中。这些是我尝试过的一些不起作用的事情

不工作 1

{
    definition: {
        id: 19,
        variables: {
            "my.var.one": { allowOverride: true, isSecret: false, value: "stringvalue" },
            "my.var.two": { allowOverride: true, isSecret: false, value: "numberValue" }
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

不工作 2

{
    definition: {
        id: 19,
        variables: {
            "my.var.one": { value: "stringvalue" },
            "my.var.two": { value: "numberValue" }
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

不工作 3

{
    definition: …
Run Code Online (Sandbox Code Playgroud)

rest azure-devops azure-pipelines

6
推荐指数
1
解决办法
3005
查看次数

为什么在不同的位置多次调用jQuery UI位置结果?

使用jQuery UI定位div时,我有一个奇怪的问题.第一次调用该函数将div放在预期的位置.随后的调用将div进一步放置在窗口的右侧和底部.以下是我可以重现问题的最少代码量.

<!DOCTYPE html>
<html>
<head>
    <title>jQuery UI Position Test </title>
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
    <style type="text/css">
        #header {
            height: 100px;
            background: orange;
        }

        #content {
            height: 300px;
            background: blue;
        }

        #message {
            width: 300px;
            background: yellow;
            position: absolute;
            display: none;
        }
    </style>
</head>

<body>
    <div id="header"></div>
    <div id="message">a message to the user</div>
    <div id="content">
        <input id="ShowMessageButton" type="button" value="Show Message" />
    </div>

    <script>
        $(document).ready(function () {
            $('#ShowMessageButton').bind("click", function () {
                $('#message').position({ my: "center top", at: "center bottom-12", of: "#header" }); …
Run Code Online (Sandbox Code Playgroud)

jquery jquery-ui

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

如何同时运行多个 XMLA Alter 命令?

我有以下两个 XMLA alter 命令可以单独正常工作。我想在 SQL Management Studio 中同时运行它们。我尝试将它们包装在命令、批处理和许多其他元素中。我似乎无法让任何东西正常工作。

<Alter AllowCreate="true" ObjectExpansion="ObjectProperties" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <Object>
        <DatabaseID>DB1</DatabaseID>
        <RoleID>Role</RoleID>
    </Object>
    <ObjectDefinition>
        <Role xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200" xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300" xmlns:ddl400="http://schemas.microsoft.com/analysisservices/2012/engine/400" xmlns:ddl400_400="http://schemas.microsoft.com/analysisservices/2012/engine/400/400">
            <ID>Role</ID>
            <Name>ReadersRole</Name>
            <Members>
                <Member>
                    <Name>Domain\ReaderUserName</Name>
                </Member>
            </Members>
        </Role>
    </ObjectDefinition>
</Alter>


<Alter AllowCreate="true" ObjectExpansion="ObjectProperties" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <Object>
        <DatabaseID>DB2</DatabaseID>
        <RoleID>Role</RoleID>
    </Object>
    <ObjectDefinition>
        <Role xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200" xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300" xmlns:ddl400="http://schemas.microsoft.com/analysisservices/2012/engine/400" xmlns:ddl400_400="http://schemas.microsoft.com/analysisservices/2012/engine/400/400">
            <ID>Role</ID>
            <Name>ReadersRole</Name>
            <Members>
                <Member>
                    <Name>Domain\ReaderUserName</Name>
                </Member>
            </Members>
        </Role>
    </ObjectDefinition>
</Alter>
Run Code Online (Sandbox Code Playgroud)

ssas ssms

4
推荐指数
1
解决办法
1636
查看次数

标签 统计

azure-devops ×1

azure-pipelines ×1

jquery ×1

jquery-ui ×1

rest ×1

ssas ×1

ssms ×1