cicd-integrations
2024.10
false
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。
UiPath logo, featuring letters U and I in white

CI/CD 連携ユーザー ガイド

最終更新日時 2025年11月6日

NuGet フィードを管理する

このセクションでは、組み込みの NuGet フィードを管理する方法について説明します。 さらに、特定のプロジェクト要件に応じてカスタム NuGet フィードを使用する方法についても説明します。

組み込みの NuGet フィードを無効化する

既定では、 uipcli は以下の組み込みフィードで依存関係を検索します。

  • https://pkgs.dev.azure.com/uipath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json
  • https://gallery.uipath.com/api/v2
  • https://api.nuget.org/v3/index.json
  • C:\Program Files\Microsoft SDKs\NuGetPackages(このパスが現在のエージェント上にある場合)
  • C:\Program Files (x86)\Microsoft SDKs\NuGetPackages (このパスが現在のエージェント上にある場合)

組み込みフィードを使用しない uipcli を指定するには、 --disableBuiltInNugetFeeds パラメーターを設定します。 このパラメーターは、 analyzepack、および test runの各タスクに使用できます。構成ファイルを使用して uipcli を実行する場合は、 "disableBuiltInNugetFeeds": trueに設定します。

「組み込みの NuGet フィードを無効化する」の画像

「組み込みの NuGet フィードを無効化する」の画像

カスタム NuGet フィードを使用する

オートメーションをパッケージ化する際にカスタム フィードを使用できます。

UiPath CLI でカスタム nuget.config を使用する

カスタム フィードを使用するには、次の手順に従います。

  1. 次の形式のカスタム nuget.config ファイルを作成します。

    <?xml version="1.0" encoding="utf-8"?><configuration>  <packageSources>    <add key="test custom feed" value="custom_feed_url" />  </packageSources></configuration><?xml version="1.0" encoding="utf-8"?><configuration>  <packageSources>    <add key="test custom feed" value="custom_feed_url" />  </packageSources></configuration><?xml version="1.0" encoding="utf-8"?><configuration>  <packageSources>    <add key="test custom feed" value="custom_feed_url" />  </packageSources></configuration><?xml version="1.0" encoding="utf-8"?><configuration>  <packageSources>    <add key="test custom feed" value="custom_feed_url" />  </packageSources></configuration>
  2. カスタム nuget.config ファイルを、 uipcli がキャッシュされているフォルダーに配置します。

    「UiPath CLI でカスタム nuget.config を使用する」の画像

Azure DevOps でカスタム nuget.config を使用する

次の例に示すように、構成を更新し、InstallPlatform手順の後に nuget.config$(Agent.ToolsDirectory)/uipcliにコピーする必要があります。

trigger:- mainpool:  vmImage: ubuntu-lateststages:- stage: Demo  jobs:    - job: Demo      steps:        - task: UiPathInstallPlatform@4          inputs:            cliVersion: 'X_23.6.8581.19168'                - task: CopyFiles@2          inputs:            SourceFolder: '$(Build.SourcesDirectory)'            Contents: 'nuget.config'            TargetFolder: '$(Agent.ToolsDirectory)/uipcli'        - task: UiPathPack@4          inputs:            versionType: 'AutoVersion'            projectJsonPath: '$(Build.SourcesDirectory)/AutomationProjects/CrossPlatform/VB/ProjectWithCustomLibraryFromOrchestrator_CrossPlatform_VB/project.json'            outputPath: '$(Build.ArtifactStagingDirectory)/Output'            traceLevel: 'Information'trigger:- mainpool:  vmImage: ubuntu-lateststages:- stage: Demo  jobs:    - job: Demo      steps:        - task: UiPathInstallPlatform@4          inputs:            cliVersion: 'X_23.6.8581.19168'                - task: CopyFiles@2          inputs:            SourceFolder: '$(Build.SourcesDirectory)'            Contents: 'nuget.config'            TargetFolder: '$(Agent.ToolsDirectory)/uipcli'        - task: UiPathPack@4          inputs:            versionType: 'AutoVersion'            projectJsonPath: '$(Build.SourcesDirectory)/AutomationProjects/CrossPlatform/VB/ProjectWithCustomLibraryFromOrchestrator_CrossPlatform_VB/project.json'            outputPath: '$(Build.ArtifactStagingDirectory)/Output'            traceLevel: 'Information'

Jenkins でカスタム nuget.config を使用する

次の例に示すように、構成を更新し、InstallPlatform手順の後に nuget.config${WORKSPACE}/CLIにコピーする必要があります。

pipeline {    agent {        label 'plugins-jenkins-lts-agent-01'    }    stages {        stage('Clone') {            steps {                git (                    branch: 'main',                    url: 'https://github.com/al3xandru-uipath-qa/CI-Plugins-Customer-Support.git'                )            }        }                stage('Install Platform') {            steps {                UiPathInstallPlatform (                    traceLevel: 'Information'                )            }        }                stage('Copy nuget.config') {            steps {                bat 'copy nuget.config CLI\\nuget.config'            }        }                stage('Pack') {            steps {                UiPathPack (                    outputPath: '${WORKSPACE}/Output',                    projectJsonPath: '${WORKSPACE}/AutomationProjects/CrossPlatform/VB/ProjectWithCustomLibraryFromOrchestrator_CrossPlatform_VB/project.json',                    traceLevel: 'Information',                    version: AutoVersion()                )            }        }    }}pipeline {    agent {        label 'plugins-jenkins-lts-agent-01'    }    stages {        stage('Clone') {            steps {                git (                    branch: 'main',                    url: 'https://github.com/al3xandru-uipath-qa/CI-Plugins-Customer-Support.git'                )            }        }                stage('Install Platform') {            steps {                UiPathInstallPlatform (                    traceLevel: 'Information'                )            }        }                stage('Copy nuget.config') {            steps {                bat 'copy nuget.config CLI\\nuget.config'            }        }                stage('Pack') {            steps {                UiPathPack (                    outputPath: '${WORKSPACE}/Output',                    projectJsonPath: '${WORKSPACE}/AutomationProjects/CrossPlatform/VB/ProjectWithCustomLibraryFromOrchestrator_CrossPlatform_VB/project.json',                    traceLevel: 'Information',                    version: AutoVersion()                )            }        }    }}
  • 組み込みの NuGet フィードを無効化する
  • カスタム NuGet フィードを使用する
  • UiPath CLI でカスタム nuget.config を使用する
  • Azure DevOps でカスタム nuget.config を使用する
  • Jenkins でカスタム nuget.config を使用する

このページは役に立ちましたか?

サポートを受ける
RPA について学ぶ - オートメーション コース
UiPath コミュニティ フォーラム
Uipath Logo
信頼とセキュリティ
© 2005-2025 UiPath. All rights reserved.