Skip to content

Commit

Permalink
Link to Go package documentation [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsauter committed Oct 13, 2023
1 parent 5198407 commit f7b51c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/authoring-tasks.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ If your custom task produces artifacts and stores them in a subfolder under `.od

=== Which programming language should I use? Do I need to use Go?

You may use any programming language you wish to implement the logic of your task, since you provide both the container image to use, and the script to execute in that image. Therefore, you can write the task in any way you want: shell scripts, Go, Python, Ruby, Java, ... you name it. That said, using languages with a fast boot time and a low memory footprint is advisable. If you plan to write automated tests for your task (which can also be run locally), then you may use the Go test framework provided by `ods-pipeline`, but even then you may use a language other than Go for your actual task.
You may use any programming language you wish to implement the logic of your task, since you provide both the container image to use, and the script to execute in that image. Therefore, you can write the task in any way you want: shell scripts, Go, Python, Ruby, Java, ... you name it. That said, using languages with a fast boot time and a low memory footprint is advisable. If you plan to write automated tests for your task (which can also be run locally), then you may use the Go test framework provided by `ods-pipeline` (see the documentation of the link:https://pkg.go.dev/github.com/opendevstack/ods-pipeline/pkg/tektontaskrun[tektontaskrun] and link:https://pkg.go.dev/github.com/opendevstack/ods-pipeline/pkg/odstasktest[odstasktest] packages), but even then you may use a language other than Go for your actual task.

=== Which images can I use in my tasks?

Expand Down

0 comments on commit f7b51c3

Please sign in to comment.