Skip to content

Commit

Permalink
Merge pull request #662 from axieum/feature/addEnvVar-to-README-example
Browse files Browse the repository at this point in the history
docs(README): add environment variable example
  • Loading branch information
nre-ableton authored Jul 15, 2024
2 parents dd590e0 + a594482 commit 2ac04d6
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 2ac04d6

Please sign in to comment.