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-deploymentTask をインストールします。これには、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.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow tkn task listコマンドを使用して、作成した Task を一覧表示します。tkn task list
$ tkn task listCopy to Clipboard Copied! Toggle word wrap Toggle overflow 出力では、
apply-manifestsおよびupdate-deploymentTask が作成されていることを検証します。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 agoCopy to Clipboard Copied! Toggle word wrap Toggle overflow tkn clustertasks listコマンドを使用して、--buildahおよびs2i-python-3などの Operator でインストールされた追加の ClusterTask を一覧表示します。注記特権付きセキュリティーコンテキストが必要になるため、特権付き Pod コンテナーを使用して
buildahClusterTask を実行する必要があります。Pod の SCC (Security Context Constraints) についての詳細は、追加リソースセクションを参照してください。tkn clustertasks list
$ tkn clustertasks listCopy to Clipboard Copied! Toggle word wrap Toggle overflow 出力には、Operator でインストールされた ClusterTask が一覧表示されます。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow