1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-26 06:23:37 +00:00
Commit Graph

584 Commits

Author SHA1 Message Date
Chmouel Boudjnah
ee662433c1 Add testing for pull request task
This adds test for the pull request binary, using
https://github.com/chmouel/go-rest-api-test/

The fixtures was imported from go-scm
https://github.com/jenkins-x/go-scm/blob/master/scm/driver/github/testdata/

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-06 17:03:54 +01:00
Chmouel Boudjnah
cba02de811 Add test for github-add-comment using fixtures
This add a test to github-add-comment to test the task.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-06 17:03:54 +01:00
Chmouel Boudjnah
9cabd0a6d2 Add documentation for the fixtures capability
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-06 17:03:54 +01:00
Chmouel Boudjnah
b9383b4936 Add support for REST services testing
Add support for REST services testing, if we have a directory in the tests
directory called `fixtures` with a yaml file that contains a responder
rules (see github-add-comments task example) it will add a sidecar task from
https://github.com/chmouel/go-rest-api-test/ so the test can point to it.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-10-06 17:03:54 +01:00
Adam A.G. Shamblin
4ea9e0787d Fix minor error, misplaced parameter prevents push when build args are present. 2020-10-05 00:13:53 +01:00
Andrea Frittoli
efed2e9641 Add the ability to specify secret name and key
Rather than forcing task users to create a secret with a fixed
name, allow setting the secret name and key as parameter.

The new parameters are optional, in the sense that they default
to the previous hardcoded values.
2020-10-03 19:33:53 +01:00
vinamra28
1f6d742aab Add GoReleaser task to Catalog
This task can be used to builds Go binaries for several platforms,
creates a GitHub release and then pushes a Homebrew formula to a tap
repository using [goreleaser](https://github.com/goreleaser/goreleaser).

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-09-30 11:52:52 +01:00
Billy Lynch
b50f4d0e93 gcs-generic: Make credential file optional.
When running on GCP, gsutil will try to infer identity from the GKE
metadata service instead of an explicitly defined credential file. The
easiest way to support this is to only set the credentials iff the file
is provided, otherwise just fallback to gsutils default behavior.

Also adds a simpler example that doesn't require credentials.
2020-09-29 15:36:51 +01:00
vinamra28
7c2d503b48 Add task to include Black(python prettier)
This task will be used to format python code after doing a lint check and will not complain for the errors.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-09-29 14:02:51 +01:00
Chmouel Boudjnah
8f174490d5 Add Github APP token task
This add the github app token, this would help to get a user token from a github
app which can be perused to do github operations.

Flow would are usually going like this :

events -> triggers event listenner \
       -> start pipeline
            -> get user token from app (with this task)
            -> do operation (like ci checks or others) on github with this
               token.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-09-29 12:55:51 +01:00
Andrea Frittoli
0db76f2345 Fix documentation for the GitHub status task
Improve the documentation for the GitHub status task, fix
spelling issues and add link to the GitHub API implemented.
2020-09-23 11:32:49 +01:00
Andrew Johnson
141466b35d Fix invalid URL to TektonDashboard 2020-09-18 17:36:24 +01:00
Sho Haraki
bc550cb33c Add Server's User to the maven task
This PR is to add `servers` tag for the private repository server.
It is assumed to be used with `MAVEN_MIRROR_URL`, for example, when using a cached library on a private network.
2020-09-18 11:26:24 +01:00
Shinichi TAMURA (@tmshn)
f4dfe1ec0f Fixed typo 2020-09-17 11:52:24 +01:00
Divyansh42
73e59e5f76 Bump buildah image
Buildah image in few tasks was not pointing to latest
image release tag, so updated the image to point to
latest release.

Signed-off-by: Divyansh42 <diagrawa@redhat.com>
2020-09-17 10:31:24 +01:00
vinamra28
fdca849a59 Bump images to 0.16.2
Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-09-15 21:33:24 +01:00
Divyansh42
88bc2b5230 Update git-clone task and document changes in behaviour
Earlier git-clone assumes `master` as default branch, but after #2835
`master` is no more default branch. Hence, updated the git clone task
fetch a remote repository's default branch instead of assuming "master"
when revision is "".

Signed-off-by: Divyansh42 <diagrawa@redhat.com>
2020-09-11 15:03:22 +01:00
Cory Cross
28667d230d Parallelize calls to copy from/to GCS
The -m flag copies from multiple threads and makes a huge
performance difference for large trees.
2020-09-11 13:16:16 +01:00
Dan Lorenc
1d6b4b15fb Add a URL result to the Git clone task.
This matches the behavior in PipelineResources after https://github.com/tektoncd/pipeline/pull/2975
2020-09-03 16:17:13 +01:00
PuneetPunamiya
01a6b13411 Adds Hub preview link in the readme
Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-09-03 15:20:13 +01:00
vinamra28
071f33e08c Add Task to install Tekton components using Tekton Operator Release
The following task uses the released version of tekton operator to install tekton components on a new cluster. By default Tekton pipelines are installed but if we want to install other components as well then we can specify their version in the parameters of the task and respective component will get installed.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-09-02 13:41:12 +01:00
Christie Wilson
e7bd4d911a Fix a typo 2020-09-02 08:32:13 +01:00
Chmouel Boudjnah
9aa07d4adf Use the proper path for the last release.yaml
previous link https://storage.googleapis.com/tekton-releases/latest/release.yaml would install 0.10.0
2020-09-01 19:12:13 +01:00
popcor255
58900d2a75 use default yaml release using google apis instead of querying github api
This line queries twice to the github api in order to apply the tekton release yaml. It would increase readability if we just use the googleapi to fetch the yaml.
2020-09-01 10:08:12 +01:00
popcor255
a9600e084a [Fixes #481] remove add registry sidecar from docker-build tests
The end to end test attaches a sidecar with a image registry for tasks to push into to. However, the function add_sidecar_registry sets the sidecar registry instead of appending it. Removing the function from test to remove this bug. There is a local registry being added to the test that is deployed with deployment and svc. The svc is referenced during the test instead of the sidecar. #481
2020-08-31 15:25:12 +01:00
vinamra28
42ed094171 Improve maven task in case of multi-module maven projects
This PR is to improve the existing maven tasks and support context directory switch in case of multi-module maven projects. Also the settings.xml was being `cat` so removed that also. This is being added as version 0.2 in maven task

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-08-28 14:22:11 +01:00
Kenneth DuMez
3561966f9b Update paketo builders location to dockerhub
[#173928543]
2020-08-27 16:01:10 +01:00
Torben Tretau
3a9b8be526 feat: send to Webex
This adds a task to send text message to Webex room

Co-authored-by: Vinamra Jain <vinjain@redhat.com>
2020-08-27 10:52:10 +01:00
Kamesh Sampath
9a76ee5a01 Call entrypoint as base command for the step and remove script parameter
Signed-off-by: Kamesh Sampath <ksampath@redhat.com>
2020-08-18 16:58:08 +01:00
vinamra28
d3a2dd5a9d Add Canary Release Task using K8s and Istio
The following task can be used to do canary release using K8s and Istio.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-08-18 08:42:08 +01:00
vinamra28
015142c05f Fix CI issues
CI was not able to monitor some pipelineruns for tasks in catalog example maven task and was getting "Could not find a created taskrun or pipelinerun in maven-0-1+ breakit=True" which is not the expected behaviour so with this patch we will iterate over it 5 times and check for it's status and reason

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-08-17 17:17:08 +01:00
Piyush Garg
0b90fea763 Fix kaniko task failing issue
This will fix the issue of kaniko task
failing as we need to run that as root
2020-08-17 14:01:08 +01:00
Scott
9a4c0875eb Remove implicit "set -x" from git-clone, deleteExisting by default
This commit adds git-clone v0.2. One default behaviour has changed
and one new param has been introduced in this version:

1) Tasks that don't start their script with #! automatically receive
a preamble that includes `set -x`. This results in verbose output
because every command is printed while the Task is running.

This commit adds a new param, "verbose", that - when set to "false"
- prevents the commands run by the task from being printed to logs.
The default value is "true": the commands run by the task will be
printed in the log.

2) The git-clone Task offers a param, deleteExisting, that cleans
any existing directory before performing a clone into it. This
has previously been set to "false" by default since it's potentially
destructive. But it sounds like there's quite often a request for
how to enable this behaviour, so it seems like the more pragmatic
default would be "true".

This commit sets deleteExisting to be defaulted to "true" so that
any existing git checkout is removed prior to a new clone being
performed.
2020-08-14 16:45:07 +01:00
Piyush Garg
947198561e Bump images to 0.15.2 2020-08-12 08:52:06 +01:00
savitaashture
755fed0245 Add DOCKER_CONFIG env to avoid Unauthorization 2020-08-11 17:52:06 +01:00
Piyush Garg
71983fd2d9 Skip docker-build in CI
This will docker-build test in CI as it is
flaky atm and causing other PR not able
to merge
2020-08-11 16:17:06 +01:00
Divyansh42
be64177d2d Fix links in README in Blue Green Deploy task
Fixed few links in README, based on new catalog org.

Signed-off-by: Divyansh42 <diagrawa@redhat.com>
2020-08-11 12:43:06 +01:00
Chmouel Boudjnah
f5824acdda Bump to pipeline 0.15.1
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-08-11 11:46:06 +01:00
Chmouel Boudjnah
5250f30ed8 Make git-init image configurable
If the user want to use another image than what we release on gcr.io let give
this option by introducing the param `gitInitImage` to set this up which would
default to the gcr.io image as it was before.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-08-11 11:46:06 +01:00
Chmouel Boudjnah
3ba53979da Add a helper script to run a task test directly from your cluster
This script will allow the developer to test a task directly withouth having to
send it to the CI and wait that all tasks runs to test it.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2020-08-11 10:11:06 +01:00
Kamesh Sampath
cb2b319b20 (fix) Ansible Runner Task
Signed-off-by: Kamesh Sampath <ksampath@redhat.com>
2020-08-10 10:13:05 +01:00
Andrew Bayer
f54dea85cc fix: git-batch-merge should default to depth=0 and subdirectory=""
Also, modify the git-batch-merge test to use actual changes - using
`kelseyhightower/nocode` was cute, but ended up masking the actual
problem that not setting `depth` to `0` by default was making all
merges fail. So let's use our own repo, two merged PRs, and the
ancestor of the first of those PRs.

fixes #477

Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
2020-08-07 20:24:05 +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
Christie Wilson
87f767178e Remove "end to end" from cluster creation Task
I removed this from the Task name but forgot to update the README!
2020-08-06 08:59:04 +01:00
Christie Wilson
afdb1215cd Remove "lint" checklist item 📝
To make sure the checklist is useful and folks don't ignore it, I think
it's important to keep only the items we need to in there.

If we can enforce something with CI, I suggest we do not include it in
the checklist - if we want to write down guidance somewhere else I think
that totally makes sense, but not in the checklist.

From https://github.com/tektoncd/catalog/issues/387 it looks like
linting should be applied automatically to each PR so I don't think we
need to include this checklist item.
2020-08-06 08:56:04 +01:00
Divyansh42
3c23c446a9 Fix README.md
After https://github.com/tektoncd/catalog/pull/425 we have changed the image,
so we are not using the Dockerfile present at
https://github.com/tektoncd/plumbing/tree/master/tekton/images/skopeo anymore.

Signed-off-by: Divyansh42 <diagrawa@redhat.com>
2020-08-04 13:35:04 +01:00
Piyush Garg
b895a44bba Refactor namespace name to have version
This will refactor the namespace name to have version of task
in namespace name as current logic may create issue in case
of multiple versions running in same namespace as pid will
remain same
2020-08-03 10:25:03 +01:00
Ian Coffey
a59f3ca7ab Add prometheus-gate catalog task to await prometheus range query results 2020-07-31 15:04:03 +01:00
Dan Lorenc
6ae766ddb0 Fixes and improvements to the upload-pypi Task.
I added support for TaskRunResults for this task. This change adds four results:
- the sha256 hash of the bdist package and the sdist package.
- the package name
- the package version

I also fixed a permission issue in the sample - I could not get this to run as a non-root
user (even without my change). The git repo is cloned correctly, but the default user of the
twine image does not have write permissions in this directory.
2020-07-31 10:48:03 +01:00