Skip to content

Commit e5f8277

Browse files
authored
Merge pull request bndr#279 from panpan0000/master
Fix README: Sample Code not working - 404
2 parents 5ecb413 + 91baa58 commit e5f8277

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@ if err != nil {
5555
panic("Something Went Wrong")
5656
}
5757

58-
job := jenkins.GetJobObj(ctx, "#jobname")
59-
queueid, err := job.InvokeSimple(ctx, params)
58+
job, err := jenkins.GetJob(ctx, "#jobname")
59+
if err != nil {
60+
panic(err)
61+
}
62+
queueid, err := job.InvokeSimple(ctx, params) // or jenkins.BuildJob(ctx, "#jobname", params)
6063
if err != nil {
6164
panic(err)
6265
}

0 commit comments

Comments
 (0)