4.2. 組み込みライブラリーを使用するように Jenkins パイプラインを変更する
手順
- Jenkins CI ソースリポジトリーに移動します (例: https://github.com/redhat-appstudio/tssc-sample-templates/Blob/main/skeleton/ci/source-repo/jenkins)。
-
編集モードで
Jenkinsfileを選択します。 動的ライブラリーの読み込みを
@Libraryアノテーションに置き換えます。Expand 置き換え前 置き換え後 library identifier: 'RHADS - SSC_Jenkins@main', retriever: modernSCM( [$class: 'GitSCMSource', remote: 'https://github.com/redhat-appstudio/tssc-sample-jenkins.git'])
@Library('RHADS - SSC_Jenkins@v1.6') _
- 更新された Jenkinsfile を保存してコミットします。