1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-25 06:17:50 +00:00
Commit Graph

11 Commits

Author SHA1 Message Date
PuneetPunamiya
5a3e5f630f Adds category field as an annotation as tekton.dev/categories
- Initially all tags were mapped to categories in Hub,
     for e.g. config.yaml: https://github.com/tektoncd/hub/blob/master/config.yaml,
     so whenever a new tag was added in a task it was mapped to a category called `others`.
     Hence before every release we had to manually map these new tags to some category,
     hence after the discussion in Catalog and Hub WG, a proposal was created for adding
     a category as an annotation.

   - PR to update the TEP-0003-Tekton Catalog Organization: https://github.com/tektoncd/community/pull/352

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2021-07-26 13:15:08 +01:00
Vincent Demeester
d93795673c Update self reference from master to main 🧙
And update references to community, pipeline, etc. too.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2021-03-19 11:09:49 +00:00
Chmouel Boudjnah
5b3f5bedda pylint: make sure we expands args
Args wasnt expanded properly, it showed like this when running the task:

`[pthon-lint : pylint] /tekton/scripts/script-0-s2wjl: line 8: inputs.params.args: not found`

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-29 16:45:20 +00:00
Chmouel Boudjnah
1d86613d46 Readd requirements.txt
the install of requirements.txt was removed from the 0.1 task but it is actually
needed for pylint, since it would error out if it can't find the dependences.

We make sure we can install them as user since the image assume root and that
would not work on some k8 install (ie: openshfit and others).

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-28 08:39:21 +00:00
Chmouel Boudjnah
85cc0565b7 Add a new pylint task
- Bump a new pylint task to 0.2
- Use an image which already has pylint and not auto install it every time we
  run the task.
- Convert the spec to pipelineSpec
- Do not try to install requirements.txt modules since pylint doesn't need it.
- Remove the ability to choose another python version since you probaby would
  not need it for a static analyzer. If you really need it you can redefine the
  image params targetting a custom container image.

Co-authored-by: Maximilian Wurzer <62810491+wumaxd@users.noreply.github.com>
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-11 04:20:21 +01:00
Chmouel Boudjnah
73b9b12e53 Add add_task helper function for tests
We were previously using the outdated git_clone version 0.1 in the
add_git_clone_task function.

So let's introduce a more generic function :

```
add_task ${task} ${version}
```

if version is 'latest' it will always install the latest version of the task.

Change all pre-apply-task-hook to use that function instead.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-07 17:51:55 +01:00
wumaxd
f1715fea2e Only install the requirements when the file is here (same as in #459)
Use variable $(workspaces.source.path) for path (pytest)
Add OWNERS file
Use latest tag for the python images as default

Signed-off-by: wumaxd <wurzer.maxi@gmx.de>
2020-08-06 10:34:04 +01:00
Chmouel Boudjnah
85cac4a020 Fixes for pylint tasks
* Only intall the requirements when the file is here
  (sometime we write pure python script that doesn't need external libs)
* fix installing pylint when needed
* Use variable $(workspaces.source.path) for path

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-08-06 09:55:04 +01:00
Chmouel Boudjnah
bddd282012 Centralize all the git-clone apply task to a common function
Centralize all the the git-clone apply commands we had around the
pre-apply-task-hook to a central common function.

This will make easier to have the same git-clone task version used everywhere.

Add some documentation about the helper functions along the way.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-07-24 15:00:01 +01:00
Piyush Garg
96d5997d3d Fix pytest and pylint task
This will the fix the pytest and pylint task
which fails if run as non root user
in case of non-root user, it install at
location which is not in PATH of image
so adding the required PATH fix the issue
2020-07-24 11:42:00 +01:00
Maximilian Wurzer
a0e2d1eb4d Add pylint and pytest task 2020-07-23 09:47:00 +01:00