-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regctl promotion to accelerate image promotion (#102)
Signed-off-by: Matthew DeVenny <[email protected]>
- Loading branch information
1 parent
bf939fd
commit 1f87229
Showing
4 changed files
with
120 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
test-resources/com/boxboat/jenkins/test/pipeline/promoteRegctl.jenkins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@Library('jenkins-shared-library@master') | ||
import com.boxboat.jenkins.pipeline.promote.* | ||
|
||
import static org.junit.Assert.assertEquals | ||
|
||
def execute() { | ||
|
||
params.promotionKey = "stage" | ||
def promote = new BoxPromote( | ||
globalConfigPath: "com/boxboat/jenkins/config.example.yaml", | ||
config: [ | ||
baseVersion: "0.1.0", | ||
gitTagDisable: true, | ||
images: [ | ||
"test/a", | ||
"test/b", | ||
], | ||
], | ||
useRegctlPromote: true, | ||
) | ||
|
||
node() { | ||
promote.wrap { | ||
stage('Promote'){ | ||
promote.promote() | ||
assertEquals(true, promote.writebackBuildVersions) | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
return this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters