We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f9f195 commit fe80940Copy full SHA for fe80940
1 file changed
src/service/pipeline.rs
@@ -129,6 +129,11 @@ impl PipelineService {
129
let registry = url::hostname(&self.ctx.config.docker_registry_endpoint)?;
130
let org = &self.ctx.config.namespace;
131
132
+ let webhook_endpoint = &self.ctx.config.webhook_endpoint;
133
+ let webhook_url = format!("{webhook_endpoint}/v1/webhooks/tekton");
134
+
135
+ let secret = String::new();
136
137
// Define parameters for the PipelineRun
138
let params = vec![
139
("REPO_URL", format!("{git_endpoint}/{org}/{repo}.git")),
@@ -137,6 +142,11 @@ impl PipelineService {
142
("TEST_IMAGE", format!("{registry}/{org}/{repo}-test:latest")),
143
("COMMAND", format!("/app/{course}-tester")),
144
("TEST_CASES_JSON", cases),
145
+ ("WEBHOOK_URL", webhook_url),
146
+ ("REPO", repo.to_string()),
147
+ ("COURSE", course.to_string()),
148
+ ("STAGE", stage.to_string()),
149
+ ("SECRET", secret),
140
150
];
141
151
152
// Render a PipelineRun resource with the given name, labels, and params
0 commit comments