-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
JENKINS_HOME=../docker/volumes/jenkins-home | ||
|
||
mvn clean install || { echo "Build failed"; exit 1; } | ||
|
||
echo "Installing plugin in $JENKINS_HOME" | ||
|
||
rm -rf $JENKINS_HOME/plugins/echarts-api-plugin* | ||
cp -fv target/echarts-api.hpi $JENKINS_HOME/plugins/echarts-api.jpi | ||
|
||
CURRENT_UID="$(id -u):$(id -g)" | ||
export CURRENT_UID | ||
IS_RUNNING=$(docker-compose ps -q jenkins-controller) | ||
if [[ "$IS_RUNNING" != "" ]]; then | ||
docker-compose restart | ||
echo "Restarting Jenkins (docker compose with user ID ${CURRENT_UID}) ..." | ||
fi |
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,5 @@ | ||
#!/bin/sh | ||
|
||
git pull | ||
git push | ||
mvn -B clean release:prepare release:perform |
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,20 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
JENKINS_HOME=../docker/volumes/jenkins-home | ||
|
||
mvn -o clean install -Pskip || { echo "Build failed"; exit 1; } | ||
|
||
echo "Installing plugin in $JENKINS_HOME" | ||
|
||
rm -rf $JENKINS_HOME/plugins/echarts-api-plugin* | ||
cp -fv target/echarts-api.hpi $JENKINS_HOME/plugins/echarts-api.jpi | ||
|
||
CURRENT_UID="$(id -u):$(id -g)" | ||
export CURRENT_UID | ||
IS_RUNNING=$(docker-compose ps -q jenkins-controller) | ||
if [[ "$IS_RUNNING" != "" ]]; then | ||
docker-compose restart | ||
echo "Restarting Jenkins (docker compose with user ID ${CURRENT_UID}) ..." | ||
fi |