Skip to content

0.5.0

Compare
Choose a tag to compare
@chmouel chmouel released this 15 Nov 14:03
· 1794 commits to main since this release
3e2aaf6

💫 Pipelines as Code version 0.5.0 💫

OpenShift Pipelines as Code version 0.5.0 has been released 🥳.

Release 0.5 of Pipelines as Code is mostly a refactoring release but brings as well many features.

What’s New in Pipelines as Code

  • 0.5 changed the Repository CRDs spec. It now only contains the Code Repository URL without the event type and target branch anymore.
    The pipelinerun inside the .tekton directory are the one true source containing that information. There is no change to be done, those spec are going to be ignored if found on the CRD and the pipelrun had already them before since you had anyway needed to specify both.
    The tkn pac repo describe command has been updated to reflect it:

image

  • Administrator can now disable the remote task feature via the remote-tasks configmap directive.

  • Administrator can now configure a custom tektoncd/hub endpoint via the hub-url directive in pipelines-as-code configmap.

  • The pipelinerun is now added to the Github Check name, it allows you to easily identify which pipelinerun the current CI run has matched :

image

  • We have a new tkn pac generate command which got extracted from tkn pac bootstrap. It nows detect what kind of source code you are running (only go and python are currently supported) and add some extra lint task to get you stared quickly with a tekton pipelinerun on your repository.

  • We now set the version of pipelines as code on the running pipelirun and tkn pac CLI. We have added as well the command tkn pac version.

  • We have hyperlinks in terminal which should be supported with most modern terminal, clicking on the SHA (with Control or⌘ key) will get you straight to the SHA URL on the console :

image

  • We have added support for tektoncd/dashboard has a log url, you need to configure the tekton-dashboard-url to your ingress endpoint for Pac to pick it up.

Installation

With tkn-pac cli

You can quickly create a Github App, install Pipelines as Code and get started with the following command :

tkn pac bootstrap

OpenShift

kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/release-0.5.0/release-0.5.0.yaml

Kubernetes

kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/release-0.5.0/release-0.5.0.k8s.yaml

and make sure you follow the setup documentation :

https://github.com/openshift-pipelines/pipelines-as-code/blob/0.5.0/docs/INSTALL.md#installation-guides

Upgrade

  • make sure the pipelines-as-code configmap have all the new directives or remote tasks for example will fail.
  • you can remove target_branch and target_event on your Repo CRD.

Full Changelog

e1ec750: Add CloneURL, Lower Secrets name and PRName to status
1d20415: Add Hyperlinks support !
0541c42: Add \n to OKToTestCommentRegexp
b2b68f3: Add bitbucket for e2e testing on kind/ghe
78d2288: Add bitbucket server support
1734a3d: Add cache variable for push pipeline
6d3d3fc: Add create permission to openshift-pipeline-as-code-clusterrole
3a8b9a6: Add force install switch to bootstrap
97d53af: Add generation
6d8c2c3: Add github action for E2E
3565686: Add go-expect library
8221d27: Add hyperlinks to the pipelinerunname
e52745c: Add test for checkSenderRepoMembership
00b617f: Add test for generation
e4ee702: Add test fort sort.RepositoryRunStatus
63d31f2: Add version to tkn-pac and generated pipelinerun
9827d34: Cleanup by the actual PR name in pr file
f20ce4d: Fix cd into the gocache directories on CI
39fa1d8: Fix e2e tests for remote annotations when the sender != Owner of the repo
33658fd: Fix getting last pr when there is a PAC Field
c24fd8f: Fix getting token from a key
d3dab77: Fix most unit tests and update golden
9dac7fe: Fix spelling when installing PAC in bootstrap
26e62d8: Fix tag on github workflow
be5a1c0: Get live pipelineruns as well for tkn pac repo desc
39319d6: Github: allow a user who belong to the repo to run CI
16cf919: Github: allow a user who belong to the repo to run CI
1e342c7: Let's go back to tektoncd/pipelines 0.24.3
be51de7: Make sure we skip clustertasks
4baf2bf: Make the ConsoleUI as an interface
341f407: Multiple other fixes for bootstrap
df2f104: New Repo Create
823258c: Print only the ApplicationName when no PR
e780238: Read configmap directly instead of using env variable
e72c66f: Refactor a bunch of stuff
f9319d5: Release 0.4.4
6d932a7: Remove Repo Match
2bc07f7: Remove TODO.md
98a9116: Remove creack/pty go-expect library
1a99be4: Remove no-color, it was buggy anyway
5db04a0: Rename every webvcs reference to git provider
0ef9d1a: Run generate pipeline just after create repo
cf764ff: Run pull request on target
396c850: Set GH_TOKEN as well for gh
4f39669: Show full URL instead of owner/repository
99820c9: Show task that we cannot parse
08a4934: Shuffle things around
f309f24: Test pipelines
3c2cd74: Testing of interactive using stubs
bdcc274: Update Documentation
dba783c: Update INSTALL.md
752fade: Update README.md
fdf35db: Update depencies
e72daf8: Update documentation
52bbd58: Use GOCACHE and GOMODCACHE env variable directly instead of symlink
0d6b662: Use pipelinetaskname for the log url
a0a1c59: better error message
c5f7baa: better error message when the wrong url is passed
aad378d: better error message when we cannot parse secret
9e2238e: chore: Target 70% for codecov
33de6ce: cosmetic printing fix in GetRepoByCR
b424267: doc: Add information for non admin user
c64e467: doc: update documentation
a6679c1: don't bug on WEBHOOK not configured
6314ee1: don't check source ips for bitbucket cloud
bc3f572: don't report nil or it will crash when not in git repo
957a4e7: feat(consoleui): Add Tekton Dashboard support
e8b6ab7: feat: Add LogURL in describe
1f839d4: feat: Allow changing tekton hub base url
e931641: feat: Allow disabling all remote tasks via configmap setting
5af6d7a: feat: add flags switches for cli's generate/create
f0827ff: feat: add pipelinerunname to the github check
3502d14: fix env variable
3c2ce76: fix linting transgression
e634e86: fix: don't error out when we cannot match
eda3007: make sure to create repo CRD at the end
44eb448: move pipelinerun sort to pkg/sort
3ce7edf: move tknpac commands to pkg/cmd/tknpac
f6ccc3c: refactor(info.event): Rename info event owner to repo
b6a3cf1: remove boldness
4206621: remove unusued libs
2bedfe0: skip webhook and bitbucket if not set
7cbb780: update documentation for 0.5.0 release
c4657ec: update documentation to 0.4.3 release
c1e8e1e: update to golang 1.16
7aa8d4c: use version to release and fix tkn-pac