2

サブプロジェクトに再帰せずにチェックアウトした整合性サンドボックスがあります。約 30 のサブプロジェクトがあり、その中にはビルドの大きなアーカイブしかありません。

このサンドボックスをジェンキンス ジョブで定期的に使用し、サブプロジェクトのデータを再同期する必要があるため、サンドボックス全体を再同期したくありません。名前付きのサブプロジェクト以外のすべてのサブプロジェクトがArchive必要で、これを cli コマンドで実行する必要があります。

私はすでにリファレンスを調べていましたがsi resync、私のニーズに合う唯一のオプションは--filter. 残念ながら、ドキュメントには、を介してファイルを除外/含める方法に関するマニュアルしかありません--filter=file:<expression>

試してみましたsi resync -S C:\MySandbox\project.pj --recurse --filter=file:"!Archiv"が、Archiv フォルダーは除外されません。

ここで私が間違っていたヒントはありますか?または別の質問: cli でディレクトリを除外することさえ可能ですか?

4

1 に答える 1

1

使用する整合性のバージョンによっては、「サンドボックス スコープ」と呼ばれる機能があります。サンドボックスのスコープは、サンドボックスの作成時に設定するか、既に指定されたサンドボックスに対して変更できます。

次のコマンドを使用して目的のサブプロジェクトを除外すると、再同期コマンドはこのサブプロジェクトを無視します

si configuresandbox --scope="!name:Archiv"

詳細については、 PTC コミュニティをご覧ください

コマンドヘルプ

サンボックスを作成する

H:\>si createsandbox -?
Usage: si createsandbox options... directory; options are:
    --lineTerminator=[lf|crlf|native|cr]  Line terminator to use in this san
dbox
    --[no]populate  Populate sandbox with members
    -R  Recurse into subsandboxes creation
    --[no|confirm]recurse  Recurse into subsandboxes creation
    --scope=attribute:name[=value]
             memberrevlabellike:<expression>
             anyrevlabellike:<expression>
             name:<expression>
             path:<expression>
             type:text|binary
             any
             subproject:<expression>
    --[no]sparse  Create sparse sandbox
    --[no]openView  Activate sandbox view after completing the command
    --devpath=value  The development path (to refer variant projects)
    --[no]failOnAmbiguousProject  Whether to abort when multiple projects co
rrespond to a flat project string.
    -P value  The name of the target project
    --project=value  The name of the target project
    --projectRevision=value  The project revision (to refer build projects)
    --[no]awaitServer  If server does not respond, keep trying
    -?  Shows the usage for a command
    --[no]batch  Control batch mode (no user interaction in batch mode)
    --cwd=value  Act as if command executed in specified directory
    -F value  Read the selection from a specified file
    --forceConfirm=[yes|no]  Specify an answer to all confirmation questions

    -g  User interaction should happen via the GUI
    --gui  User interaction should happen via the GUI
    --hostname=value  Hostname of server
    -N  Responds to all confirmations with "no"
    --no  Responds to all confirmations with "no"
    --password=value  Credentials (e.g., password) to login with
    --port=value  TCP/IP port number of server
    --quiet  Control status display
    --selectionFile=value  Read the selection from a specified file
    --settingsUI=[gui|default]  Control UI for command options
    --status=[none|gui|gui.actions|default]  Control status display
    --usage  Shows the usage for a command
    --user=value  Username to login to server with
    -Y  Responds to all confirmations with "yes"
    --yes  Responds to all confirmations with "yes"

サンドボックス構成の変更

H:\>si configuresandbox -?
Usage: si configuresandbox options... sandbox location...; options are:
    --[no]computeChecksums
    --lineTerminator=[lf|crlf|native|cr]  Line terminator to use in this san
dbox
    --scope=attribute:name[=value]
             memberrevlabellike:<expression>
             anyrevlabellike:<expression>
             name:<expression>
             path:<expression>
             type:text|binary
             any
             subproject:<expression>
    --[no]sparse  Make the sandbox sparse
    -?  Shows the usage for a command
    --[no]batch  Control batch mode (no user interaction in batch mode)
    --cwd=value  Act as if command executed in specified directory
    -F value  Read the selection from a specified file
    --forceConfirm=[yes|no]  Specify an answer to all confirmation questions

    -g  User interaction should happen via the GUI
    --gui  User interaction should happen via the GUI
    --hostname=value  Hostname of server
    -N  Responds to all confirmations with "no"
    --no  Responds to all confirmations with "no"
    --password=value  Credentials (e.g., password) to login with
    --port=value  TCP/IP port number of server
    --quiet  Control status display
    --selectionFile=value  Read the selection from a specified file
    --settingsUI=[gui|default]  Control UI for command options
    --status=[none|gui|gui.actions|default]  Control status display
    --usage  Shows the usage for a command
    --user=value  Username to login to server with
    -Y  Responds to all confirmations with "yes"
    --yes  Responds to all confirmations with "yes"
于 2018-02-07T13:34:47.797 に答える