fixed testflight tests.
Signed-off-by: Chao Li <chaol@vmware.com>
This commit is contained in:
parent
14ad09bb9d
commit
a88afbbfb8
|
@ -857,15 +857,14 @@ func (j *job) tryRerunBuild(buildToRerun Build, who string) (Build, error) {
|
|||
|
||||
rerunBuild := newEmptyBuild(j.conn, j.lockFactory)
|
||||
err = createBuild(tx, rerunBuild, map[string]interface{}{
|
||||
"name": rerunBuildName,
|
||||
"job_id": j.id,
|
||||
"pipeline_id": j.pipelineID,
|
||||
"team_id": j.teamID,
|
||||
"status": BuildStatusPending,
|
||||
"rerun_of": buildToRerunID,
|
||||
"rerun_number": rerunNumber,
|
||||
"manually_triggered": true,
|
||||
"who_triggered": who,
|
||||
"name": rerunBuildName,
|
||||
"job_id": j.id,
|
||||
"pipeline_id": j.pipelineID,
|
||||
"team_id": j.teamID,
|
||||
"status": BuildStatusPending,
|
||||
"rerun_of": buildToRerunID,
|
||||
"rerun_number": rerunNumber,
|
||||
"who_triggered": who,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
@ -46,7 +46,7 @@ var _ = Describe("Rerunning a build", func() {
|
|||
fly("rerun-build", "-j", inPipeline("some-passing-job"), "-b", "1", "-w")
|
||||
})
|
||||
|
||||
It("creats a rerun of the first build", func() {
|
||||
It("creates a rerun of the first build", func() {
|
||||
By("watching the job without specifying a build name")
|
||||
watch := waitForBuildAndWatch("some-passing-job")
|
||||
Eventually(watch).Should(gbytes.Say("second-version"))
|
||||
|
@ -65,7 +65,7 @@ var _ = Describe("Rerunning a build", func() {
|
|||
fly("rerun-build", "-j", inPipeline("some-passing-job"), "-b", "1.1", "-w")
|
||||
})
|
||||
|
||||
It("creats a rerun of the first build", func() {
|
||||
It("creates a rerun of the first build", func() {
|
||||
By("watching the job with rerun build's name")
|
||||
watch := waitForBuildAndWatch("some-passing-job", "1.2")
|
||||
Eventually(watch).Should(gbytes.Say("first-version"))
|
||||
|
|
Loading…
Reference in New Issue