This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.4.3. Pipeline Task の作成
手順
pipelines-tutorial
リポジトリーからapply-manifests
およびupdate-deployment
Task をインストールします。これには、Pipeline の再利用可能な Task の一覧が含まれます。oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/release-tech-preview-1/01_pipeline/01_apply_manifest_task.yaml oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/release-tech-preview-1/01_pipeline/02_update_deployment_task.yaml
$ oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/release-tech-preview-1/01_pipeline/01_apply_manifest_task.yaml $ oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/release-tech-preview-1/01_pipeline/02_update_deployment_task.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow tkn task list
コマンドを使用して、作成した Task を一覧表示します。tkn task list
$ tkn task list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 出力では、
apply-manifests
およびupdate-deployment
Task が作成されていることを検証します。NAME DESCRIPTION AGE apply-manifests 1 minute ago update-deployment 48 seconds ago
NAME DESCRIPTION AGE apply-manifests 1 minute ago update-deployment 48 seconds ago
Copy to Clipboard Copied! Toggle word wrap Toggle overflow tkn clustertasks list
コマンドを使用して、--buildah
およびs2i-python-3
などの Operator でインストールされた追加の ClusterTask を一覧表示します。注記特権付きセキュリティーコンテキストが必要になるため、特権付き Pod コンテナーを使用して
buildah
ClusterTask を実行する必要があります。Pod の SCC (Security Context Constraints) についての詳細は、追加リソースセクションを参照してください。tkn clustertasks list
$ tkn clustertasks list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 出力には、Operator でインストールされた ClusterTask が一覧表示されます。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow