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