4.3. Creating Pipeline Tasks
Procedure
Install the
apply-manifestsandupdate-deploymentTasks from thepipelines-tutorialrepository, which contains a list of reusable Tasks for Pipelines:$ oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/release-tech-preview-2/01_pipeline/01_apply_manifest_task.yaml $ oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/release-tech-preview-2/01_pipeline/02_update_deployment_task.yamlUse the
tkn task listcommand to list the Tasks you created:$ tkn task listThe output verifies that the
apply-manifestsandupdate-deploymentTasks were created:NAME DESCRIPTION AGE apply-manifests 1 minute ago update-deployment 48 seconds agoUse the
tkn clustertasks listcommand to list the Operator-installed additional ClusterTasks, for example --buildahands2i-python-3:注意You must use a privileged Pod container to run the
buildahClusterTask because it requires a privileged security context. To learn more about security context constraints (SCC) for pods, see the Additional resources section.$ tkn clustertasks listThe output lists the Operator-installed ClusterTasks:
NAME DESCRIPTION AGE buildah 1 day ago git-clone 1 day ago s2i-php 1 day ago tkn 1 day ago