Skip to content

Commit

Permalink
Use gz- projects on Homebrew CI (#778)
Browse files Browse the repository at this point in the history
* Use gz- projects on Homebrew CI

Signed-off-by: Louise Poubel <[email protected]>

* More instances

Signed-off-by: Louise Poubel <[email protected]>

* Don't be greedy, keep ign- path for now

Signed-off-by: Louise Poubel <[email protected]>

Co-authored-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
chapulina and j-rivero authored Aug 3, 2022
1 parent 817fbdf commit 180794e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions jenkins-scripts/dsl/ignition.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ ignition_software.each { ign_sw ->
then
/bin/bash -xe "\$HOMEBREW_SCRIPT"
else
/bin/bash -xe "./scripts/jenkins-scripts/lib/project-default-devel-homebrew-amd64.bash" "ignition-${ign_sw}"
/bin/bash -xe "./scripts/jenkins-scripts/lib/project-default-devel-homebrew-amd64.bash" "gz-${ign_sw}"
fi
""".stripIndent())
}
Expand Down Expand Up @@ -591,7 +591,7 @@ ignition_software.each { ign_sw ->
then
/bin/bash -xe "\$HOMEBREW_SCRIPT"
else
/bin/bash -xe "./scripts/jenkins-scripts/lib/project-default-devel-homebrew-amd64.bash" "ignition-${ign_sw}"
/bin/bash -xe "./scripts/jenkins-scripts/lib/project-default-devel-homebrew-amd64.bash" "gz-${ign_sw}"
fi
""".stripIndent())
}
Expand Down
2 changes: 1 addition & 1 deletion jenkins-scripts/dsl/ignition_collection.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ ignition_collections.each { ign_collection ->
shell("""\
#!/bin/bash -xe

/bin/bash -xe "./scripts/jenkins-scripts/lib/project-default-devel-homebrew-amd64.bash" "ignition-${ign_collection_name}"
/bin/bash -xe "./scripts/jenkins-scripts/lib/project-default-devel-homebrew-amd64.bash" "gz-${ign_collection_name}"
""".stripIndent())
}
}
Expand Down
6 changes: 3 additions & 3 deletions jenkins-scripts/lib/project-default-devel-homebrew-amd64.bash
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export HOMEBREW_MAKE_JOBS=${MAKE_JOBS}
PROJECT=$1 # project will have the major version included (ex gazebo2)
PROJECT_ARGS=${2}

# In ignition projects, the name of the repo and the formula does not match
# TODO(chapulina) Use gz path instead of legacy ign
PROJECT_PATH=${PROJECT}
if [[ ${PROJECT/ignition} != ${PROJECT} ]]; then
PROJECT_PATH="ign${PROJECT/ignition}"
if [[ ${PROJECT/gz} != ${PROJECT} ]]; then
PROJECT_PATH="ign${PROJECT/gz}"
PROJECT_PATH="${PROJECT_PATH/[0-9]*}"
fi

Expand Down

0 comments on commit 180794e

Please sign in to comment.