Releases: openshift-pipelines/pipelines-as-code
0.6.1
OpenShift Pipelines version 0.6.1
OpenShift Pipelines as Code patch version 0.6.1 has been released 🥳
This fix, being able reporting the task breakdown on the provider interface when there is a failure.
This bring other fixes related to release and generation of the release yaml files.
Installation
To install this version you can install the release.yaml with kubectl
for your platform :
Openshift
kubectl apply -f https://github.com/openshift-pipelines/pipelines-as-code/releases/download/0.6.1/release.yaml
Kubernetes
kubectl apply -f https://github.com/openshift-pipelines/pipelines-as-code/releases/download/0.6.1/release.k8s.yaml
Documentation
documentation is available here :
What's Changed
- Don't fail immediately when we have an error by @chmouel in #570
- Generate stable refs instead of tags by @chmouel in #569
- Try to import the same fix as what we have on push by @chmouel in #576
Full Changelog: 0.6.0...0.6.1
0.5.9
OpenShift Pipelines version 0.5.9
OpenShift Pipelines as Code version 0.5.9 has been released 🥳
- This fix, being able reporting the task breakdown on the provider interface when there is a failure
To install this version you can just do :
kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/release-0.5.9/release-0.5.9.yaml
and make sure you follow the setup documentation :
https://github.com/openshift-pipelines/pipelines-as-code/tree/0.5.9/INSTALL.md
Changelog
Full Changelog: 0.5.8...0.5.9
0.6.0
Pipelines as Code 0.6.0
We are thrilled to announce the release of Pipelines as Code 0.6.0
This release brings many features and a new architecture, moving away from a triggers and task based flow to use a controller to control the PipelineRun
execution.
If you are upgrading from a 0.5.x release, make sure to read the upgrade notes before installing the 0.6 release.
Install Notes
To install you can simply use kubectl
.
OpenShift
kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/release-0.6.0/release.yaml
Kubernetes
kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/release-0.6.0/release.k8s.yaml
tkn-pac
tkn pac boostrap
- this will install the latest version and let you create a GitHub appstkn pac bootstrap --skip-github-app
- this will just install the latest version.
Documentation
New Features
New Documentation Website
We have a new documentation website pipelinesascode.com.
New Controller
instead of using the tekton triggers eventlistenner to handle events, we are now using new controller, which allows us to have greater flexibility to manage the Runs.
A nice side effect is a much improved startup between the time the webhook is received to the time we report it on the Github/provider interfaces.
There is no user changes, the only difference will be the location of the Pipelines as Code logs inside the pipelines-as-code
namespace, now located inside the controller logs instead of the individual TaskRun.
Add Gitlab support
We have added Gitlab support. Using a webhook, it will report back the status of the pipelines directly as a comment of the merge request, see the documentation for more info.
Documentation: https://pipelinesascode.com/docs/install/gitlab/
Advanced pipeline filtering with CEL
You are now able to use CEL to match a pipelinerun to an event. This allows a more flexible filtering on request to match PipelineRun to events.
Documentation: https://pipelinesascode.com/docs/guide/autoringprs/#advanced-event-matching
More template variables
New template variables has been added :
{{source_branch}}
: The branch name where the event come from.{{target_branch}}
: The branch name on which the event targets (same as source_branch for push events).{{pull_request_number}}
: The pull or merge request number, only defined when we are in a pull_request event type.
Documentation: https://pipelinesascode.com/docs/guide/autoringprs/
Timeout from PipelineRun are now respected
We are now respecting the timeout parameter from the PipelineRun
or from the Tekton controller. Unless the global setting default-pipelinerun-timeout
in the pipelines-as-code
configmap is set.
Documentation: https://pipelinesascode.com/docs/install/settings/
Upgrade Notes
Cleanup
Since we moved away from the triggers template, there will be some cleaning to do before installing the update.
Launch this command to clean up the resources manually :
for t in TriggerBinding CronJob EventListener TaskRun TriggerBinding TriggerTemplate;do \
kubectl delete --all -n pipelines-as-code ${t};done
Route/Ingress change
Since we have moved to use a controller, the route on OpenShift or Ingress on Kubernetes may need to be updated. This is the target Service
that needs to be used :
to:
kind: Service
name: pipelines-as-code-controller
Repo CRD changes
The default secret key for repository CRD are :
provider.token
- previouslytoken
webhook.secret
- previouslysecret
you may have to update your repo crds if you were using the previous defaults.
Default timeout on PipelineRun
We previously had a hard limit of 2 hours on every PipelineRun
, we are now able to respect the settings as configured on the PipelineRun
.
If you are upgrading, you may want to remove the default-pipelinerun-timeout
setting from the configmap.
Changelog
- 010bc25: ACL support, from comment and project/group level (@chmouel)
- 9b056c4: Add E2E Test badge to workflow (@chmouel)
- 0775cec: Add better comment in the default generated tmpl (@chmouel)
- fb312e0: Add check_run in bootstrap & remove commit comment (not supported) (@sm43)
- a9e272c: Add dev links (@chmouel)
- fba9cad: Add documentation (@chmouel)
- 6498ebc: Add gitlab e2e test (@chmouel)
- 040e653: Add gitlab env into gha workflow (@chmouel)
- 98ebbe9: Add info from where the branch come from (@chmouel)
- 12ba5c5: Add pagination (@chmouel)
- a35df38: Add preview URLS build (@chmouel)
- 3d2c3a6: Add pull request number template variable (@chmouel)
- d9327ad: Add push support (@chmouel)
- aabf58f: Add release process documentation (@chmouel)
- d247f5d: Add sender, source_branch, target_branch variables (@chmouel)
- 1007fb4: Add support for /retest and /ok-to-test (@chmouel)
- 6d51637: Add tekton and Openshift pipelines to readme (@chmouel)
- ffa9bd7: Add tests for pkg/consoleui and kinteract/labels (@chmouel)
- 467aebb: Add unit test for create sttus (@chmouel)
- 5bc6c55: Add vale grammar editing (@chmouel)
- 03ea1b2: Adds controller for PAC (@sm43)
- 91b2b28: Adds unit test for pac handler (@sm43)
- 8eaccc9: Allow replaying webhooks directly (@chmouel)
- 29ced5f: Apply suggestions from code review frm super SM43 (@chmouel)
- 86c6059: Better error reporting when Hub API is down (@chmouel)
- 7b0d636: Bitbucket-server: adds payload validation using webhook secret (@sm43)
- 62b8674: CI fixes for gh:actions and pac (@chmouel)
- 5492d9b: Cleanup: removes unnecessary rbac role for controller (@sm43)
- d824220: Create stable tags on release (@chmouel)
- 02ca95d: Detect if we have cluster task and use this for generation (@chmouel)
- becf3ca: Do buildah push to quay directly in pipeline (@chmouel)
- 705c4fe: Don't match a pipeline if we don't have annotation (@chmouel)
- 137bc69: Enables bitbucket cloud provider in controller (@sm43)
- 4bbfa38: Enables bitbucket server provider in controller (@sm43)
- ed7787b: Enables gitlab provider in controller (@sm43)
- 05b0c88: First jab at gitlab support (@chmouel)
- 1a0ade1: Fix cli href link (@chmouel)
- 1d2446b: Fix deb and rpm names generation on release (@chmouel)
- 17cf25c: Fix generating image (@chmouel)
- 7a2e61e: Fix github pull request trigger target (@chmouel)
- 0a9edd0: Fix link (@chmouel)
- 48db590: Fix markdown last comma (@chmouel)
- 2fcf40c: Fix running controller on Dockerfile (@chmouel)
- eb3acf2: Fix spelling (@chmouel)
- 63e0844: Fix unit test since we moved to use triggertarget instead of EventType (@chmouel)
- 7402411: Formatting for release-process.md (@chmouel)
- 72ac6c8: GitHub: removes unsupported event from bootstrap cmd and docs (@sm43)
- bf538df: Github pull req test (@sm43)
- 1afe13b: Gitlab: adds payload validation using webhook secret (@sm43)
- e2e4731: Implement Advanced event matching via CEL (@chmouel)
- 665ca3f: Improve replay-last-pr script (@chmouel)
- 442c722: Make sure we clean the test cache before running the tests (@chmouel)
- 1ac7a42: Make sure we strip refs/heads when exposing branch (@chmouel)
- 7d25892: Make test-unit less verbose (@chmouel)
- 72af6d2: More doc tweaking (@chmouel)
- 7ce3f42: Move common code for providers to a single place (@sm43)
- e2ef124: Move documentation to a hugo site (@chmouel)
- 3571133: Output a json message at the end after processing (@chmouel)
- ccf00e2: Parse event type and payload at single place (@sm43)
- c288b17: Pass all headers when replaying github requests (@chmouel)
- cbee724: Point to the release version when releasing in release (@chmouel)
- d8a3d40...
0.5.8
OpenShift Pipelines version 0.5.8
OpenShift Pipelines as Code version 0.5.8 has been released 🥳
This release fixes a pretty bad bug where timeout wasn't respected and pipelines will fail when going over 10 minutes (!!) :
3e0d392
We now generate pipelinerun using the git-clone ClusterTasks instead of the hub task if it's available on the cluster :
4c66b81
To install this version you can install the release.yaml with kubectl for your platform :
Installation
Openshift
kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/0.5.8/release.yaml
Kubernetes
kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/0.5.8/release.k8s.yaml
Documentation
full install documentation is available here:
https://github.com/openshift-pipelines/pipelines-as-code/blob/0.5.8/docs/install.md
0.5.7
OpenShift Pipelines version 0.5.7
OpenShift Pipelines as Code version 0.5.7 has been released 🥳
This release fixes following bugs :
- db8f587: Adds clusterrole so that non-admin user can access repository CR (@sm43)
- 0371f70: [gh app] Update exiting check run if there is one (@chmouel)
- 80df95e: fixes application id (@sm43)
To install this version you can install the release.yaml with kubectl for your platform :
Installation
Openshift
kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/0.5.7/release.yaml
Kubernetes
kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/0.5.7/release.k8s.yaml
Documentation
full install documentation is available here:
https://github.com/openshift-pipelines/pipelines-as-code/blob/0.5.7/docs/install.md
0.5.6
OpenShift Pipelines version 0.5.6
OpenShift Pipelines as Code patch version 0.5.6 has been released 🥳
This release fix minor bugs :
- 2a493cd: Create stable tags on release (@chmouel)
- f011a03: Read pac installation namespace from env (@sm43)
- 6fb444f: Repo create cmd: convert username to lowercase and then use it (@sm43)
To install this version you can install the release.yaml with kubectl
for your platform :
Installation
Openshift
kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/0.5.6/release.yaml
Kubernetes
kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/0.5.6/release.k8s.yaml
Documentation
full install documentation is available here:
https://github.com/openshift-pipelines/pipelines-as-code/blob/0.5.6/docs/install.md
0.5.5
OpenShift Pipelines version 0.5.5
OpenShift Pipelines as Code patch version 0.5.5 has been released 🥳
This release fix a few bugs with tkn-pac :
- d0a017d: Try to detect if pac is installed via operator
- b5c59fa: Skip trying to resolve Pipeline bundle
- 0c5feed: fix tkn pac repo create not accepting existing namespace
To install this version you can just do :
kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/release-0.5.5/release-0.5.5yaml
and make sure you follow the setup documentation :
https://github.com/openshift-pipelines/pipelines-as-code/tree/release-0.5.5/INSTALL.md
0.5.4
OpenShift Pipelines version 0.5.4
OpenShift Pipelines as Code patch version 0.5.4 has been released 🥳
This release fix a bug if there was a pipelinerun in .tekton directory with no "on-event" annotation it would get picked up while it should be skipped.
To install this version you can just do :
kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/release-0.5.4/release-0.5.4yaml
and make sure you follow the setup documentation :
https://github.com/openshift-pipelines/pipelines-as-code/tree/release-0.5.4/INSTALL.md
Changelog
0.5.3
OpenShift Pipelines version 0.5.3
OpenShift Pipelines as Code version 0.5.3 has been released 🥳
This releases fixes a few bugs and add some optimizations.
One notable change is that we moved away from pipelinerun in pipelines-as-code
repository and now use a taskrun which should be faster to start the initial feedback on CI.
Install
To install this version you can just do :
kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/release-0.5.3/release-0.5.3.yaml
and make sure you follow the setup documentation :
https://github.com/openshift-pipelines/pipelines-as-code/tree/release-0.5.3/INSTALL.md
Full Changelog
- d3c4340: Add
commandType
annotations to cobra.Command (@concaf) - 1540c80: Add test to replay last deliveries directly from github (@chmouel)
- c513c6a: Allow creating a app on organization (@chmouel)
- 628df42: Document resolve behaviour between cli and live (@chmouel)
- e7ea177: Fix spelling across documentation (#398) (@chmouel)
- 68fdef9: Fix task resolution from inside git on resolve (#402) (@chmouel)
- c7c3fdf: Make sure we initialize the fake kube client (#397) (@chmouel)
- b9af169: Reads default pipelinerun timeout value from configmap (#394) (@sm43)
- 5dce672: Removes generated secret after completion of user pipelinerun (#393) (@sm43)
- 34bc00f: Replaces Pipelinerun with taskrun in pac namespace (#390) (@sm43)
- 0261621: Returns branch name as
main
if ref asrefs-heads-main
(#392) (@sm43) - e982869: Test should use already initialized k8s client (#403) (@guillaumerose)
- c169e33: Update PR Flow (@chmouel)
- ee19564: Update bitbucket cloud token creation instructions (@chmouel)
- 312f03d: Update cleanup cron to remove taskrun instead of pipelineRun (@sm43)
- da88994: Update documentation for 0.5.3 (@chmouel)
- 9b015d5: Update documentation on Repository CR creation (@sbose78)
- eb25c56: Update pkg/cmd/tknpac/bootstrap/bootstrap.go (@chmouel)
- e517b2e: Update to google-go v42 (@chmouel)
- 997ea7c: Update to pipelines 0.28.2 (@chmouel)
- def3857: Use golangci image version directly (@chmouel)
- 95df8d4: Use ubi latest 8.5 version instead of 8.4 (@chmouel)
- bbbdd69: [resolve] Don't crash when not connected to kube (#400) (@chmouel)
- ca7e407: add kind information in development.md (@chmouel)
- 1fb386b: fix getting repo spec credentials with no api url (@chmouel)
- 1f6e6fd: fix typecheck golangci assertions (@chmouel)
- 69e49b6: fixes pre push hook link in pull req template 😄 (#391) (@sm43)
- fb463ad: make release script cleanup (#389) (@chmouel)
- ce146fb: resolve, don't print error if pac is not insllaed (@chmouel)
- ca8e53f: use taskrun instead of pipelinerun (@chmouel)
0.5.2
OpenShift Pipelines as Code 0.5.2
- OpenShift Pipelines as Code version 0.5.2 is a minor release fixing a bug where simple annotations like those ones :
pipelinesascode.tekton.dev/on-event: "push"
would not work while the array type ["push", "pul_request"]
would work.
additionally we have added those features :
-
We now detect if the route URL when creating the github app have a self signed certificate and warn user about it to modify the github app setting.
-
We have added a new
tkn pac bootstrap github-app
alias to directly created a Github Application without installing Pipelines as Code -
We have a documentation update with a flow chart of a typycal Pull Request from Github running with Piplines as Code https://github.com/openshift-pipelines/pipelines-as-code/blob/main/docs/flow.md
To install or update to 0.5.2 you simply need to
kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/pipelines-as-code/release-0.5.2/release-0.5.2.yaml
and make sure you follow the setup documentation :
https://github.com/openshift-pipelines/pipelines-as-code/blob/release-0.5.2/docs/install.md
What's Changed
- Add tkn pac bootstrap github-app by @chmouel in #368
- Add release helper to help releasing by @chmouel in #369
- Update cli.md by @Swilvan in #370
- make sure to warn when we have self encrypted ssl certs on route by @chmouel in #372
- Add Pipelinerun as Code typical Github PR flow by @chmouel in #373
- Improve workflow image with more details by @chmouel in #375
- Another improvement on the flow image by @chmouel in #376
- Revert "Another improvement on the flow image" by @chmouel in #377
- fixes typos in repo command alias and docs by @sm43 in #378
- Fixes annotation bug which used to err out on string value by @sm43 in #379
- Add pull request template by @chmouel in #380
- Verify Pipelines is installed before installing PaC by @guillaumerose in #382
- Check both unknown CA and bad certificate by @guillaumerose in #383
- Another day another flow update by @chmouel in #384
- Add defaults config for tkn-pc resolv by @guillaumerose in #386
- Add release version label to all resources by @chmouel in #388
New Contributors
- @Swilvan made their first contribution in #370
- @sm43 made their first contribution in #378
- @guillaumerose made their first contribution in #382
Full Changelog: 0.5.1...0.5.2