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. 创建管道任务
流程
- 从 - pipelines-tutorial存储库(它包括了一组可为管道重复使用的任务)中安装- apply-manifests和- update-deployment任务:- 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命令列出您创建的任务:- tkn task list - $ tkn task list- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - 输出会确认创建了 - apply-manifests和- update-deployment任务:- 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命令列出由 Operator 安装的额外 ClusterTasks,如- buildah和- s2i-python-3:注意- 您必须使用特权 Pod 容器来运行 - buildah ClusterTask,因为它需要特权安全上下文。如需了解更多有关 pod 安全性上下文约束(SCC)的信息,请参阅附加资源部分。- tkn clustertasks list - $ tkn clustertasks list- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - 输出中列出了 Operator 安装的 ClusterTasks: - Copy to Clipboard Copied! - Toggle word wrap Toggle overflow