Skip to content

Commit

Permalink
docs(README): add environment variable example
Browse files Browse the repository at this point in the history
  • Loading branch information
axieum committed Jul 6, 2024
1 parent dd590e0 commit a594482
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ class TestExampleJob extends BasePipelineTest {
super.setUp()
// Assigns false to a job parameter ENABLE_TEST_STAGE
addParam('ENABLE_TEST_STAGE', 'false')
// Assigns 1.0.0-rc.1 to the environment variable TAG_NAME
addEnvVar('TAG_NAME', '1.0.0-rc.1')
// Defines the previous execution status
binding.getVariable('currentBuild').previousBuild = [result: 'UNSTABLE']
}
Expand Down

0 comments on commit a594482

Please sign in to comment.