This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from xtext/lb_issue_11_nightly_deployment
Lb issue 11 nightly deployment
- Loading branch information
Showing
109 changed files
with
1,151 additions
and
174 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#!/usr/bin/env bash | ||
if [ -z "$JENKINS_URL" ]; then | ||
# if not set in environment use default | ||
JENKINS_URL=https://ci.eclipse.org/xtext/ | ||
fi | ||
if [ -z "$WORKSPACE" ]; then | ||
# if not set in environment use default | ||
WORKSPACE=$(pwd) | ||
fi | ||
|
||
|
||
MVN_ARGS=(\ | ||
--update-snapshots \ | ||
-DJENKINS_URL=$JENKINS_URL \ | ||
-DWORKSPACE=$WORKSPACE \ | ||
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ | ||
-Dit-archetype-tests-skip=true \ | ||
) | ||
|
||
# args parsing inspired by https://gist.github.com/jehiah/855086 | ||
while [ "$1" != "" ]; do | ||
PARAM=`echo $1 | awk -F= '{print $1}'` | ||
VALUE=`echo $1 | awk -F= '{print $2}'` | ||
case $PARAM in | ||
-h | --help) | ||
echo "Perform Maven build for xtext-xtend" | ||
echo "" | ||
echo "./1-maven-build.sh" | ||
echo -e "\t-h --help" | ||
echo -e "\t--no-tests Skip test execution" | ||
echo -e "\t--local-repository=<PATH> Use local Maven repository" | ||
echo -e "\t--tp=$TARGET_PLATFORM (valid values: r202203,r202206,...,latest)" | ||
echo "" | ||
exit | ||
;; | ||
--no-tests) | ||
MVN_ARGS+=(-DskipTests=true) | ||
;; | ||
--local-repository) | ||
MVN_ARGS+=" -Dmaven.repo.local=$VALUE" | ||
;; | ||
--tp) | ||
TARGET_PLATFORM=($VALUE) | ||
;; | ||
*) | ||
# append any additionally passed arg | ||
if [ -z "$VALUE" ]; then | ||
MVN_ARGS+=($PARAM) | ||
else | ||
MVN_ARGS+=($PARAM=$VALUE) | ||
fi | ||
;; | ||
esac | ||
shift | ||
done | ||
|
||
MVN_ARGS+=(-PuseJenkinsSnapshots) | ||
MVN_ARGS+=(-P$TARGET_PLATFORM) | ||
|
||
echo mvn -B -f org.eclipse.xtext.full.releng ${MVN_ARGS[@]} $@ | ||
|
||
echo "Using target platform '$TARGET_PLATFORM'" | ||
mvn -B \ | ||
-f org.eclipse.xtext.full.releng \ | ||
clean deploy \ | ||
-DaltDeploymentRepository=local::default::file:./build/maven-repository \ | ||
${MVN_ARGS[@]} \ | ||
$@ |
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,65 @@ | ||
#!/usr/bin/env bash | ||
if [ -z "$JENKINS_URL" ]; then | ||
# if not set in environment use default | ||
JENKINS_URL=https://ci.eclipse.org/xtext/ | ||
fi | ||
if [ -z "$WORKSPACE" ]; then | ||
# if not set in environment use default | ||
WORKSPACE=$(pwd) | ||
fi | ||
|
||
|
||
MVN_ARGS=(\ | ||
--update-snapshots \ | ||
-DJENKINS_URL=$JENKINS_URL \ | ||
-DWORKSPACE=$WORKSPACE \ | ||
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ | ||
-Dit-archetype-tests-skip=true \ | ||
) | ||
|
||
# args parsing inspired by https://gist.github.com/jehiah/855086 | ||
while [ "$1" != "" ]; do | ||
PARAM=`echo $1 | awk -F= '{print $1}'` | ||
VALUE=`echo $1 | awk -F= '{print $2}'` | ||
case $PARAM in | ||
-h | --help) | ||
echo "Perform Maven build for xtext-xtend" | ||
echo "" | ||
echo "./1-maven-build.sh" | ||
echo -e "\t-h --help" | ||
echo -e "\t--no-tests Skip test execution" | ||
echo -e "\t--local-repository=<PATH> Use local Maven repository" | ||
echo -e "\t--tp=$TARGET_PLATFORM (valid values: r202203,r202206,...,latest)" | ||
echo "" | ||
exit | ||
;; | ||
--no-tests) | ||
MVN_ARGS+=(-DskipTests=true) | ||
;; | ||
--local-repository) | ||
MVN_ARGS+=" -Dmaven.repo.local=$VALUE" | ||
;; | ||
--tp) | ||
TARGET_PLATFORM=($VALUE) | ||
;; | ||
*) | ||
# append any additionally passed arg | ||
if [ -z "$VALUE" ]; then | ||
MVN_ARGS+=($PARAM) | ||
else | ||
MVN_ARGS+=($PARAM=$VALUE) | ||
fi | ||
;; | ||
esac | ||
shift | ||
done | ||
|
||
MVN_ARGS+=(-PuseJenkinsSnapshots) | ||
|
||
echo mvn -B -f org.eclipse.xtext.full.releng ${MVN_ARGS[@]} $@ | ||
|
||
mvn -B \ | ||
-f org.eclipse.xtext.full.releng \ | ||
clean deploy \ | ||
${MVN_ARGS[@]} \ | ||
$@ |
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,43 @@ | ||
pipeline { | ||
agent any | ||
|
||
environment { | ||
DOWNLOAD_AREA = '/home/data/httpd/download.eclipse.org/modeling/tmf/xtext/monorepo' | ||
REPOSITORY_PATH="${DOWNLOAD_AREA}/updates/nightly" | ||
} | ||
|
||
tools { | ||
maven "apache-maven-3.8.6" | ||
jdk "temurin-jdk17-latest" | ||
} | ||
|
||
stages { | ||
stage('Prepare download area') { | ||
steps { | ||
sshagent(['projects-storage.eclipse.org-bot-ssh']) { | ||
sh ''' | ||
echo ${REPOSITORY_PATH} | ||
ssh [email protected] "mkdir -p $REPOSITORY_PATH" | ||
''' | ||
} | ||
} | ||
} | ||
stage('Maven Tycho Build, Sign, Deploy') { | ||
steps { | ||
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING')]) { | ||
sh 'gpg --batch --import "${KEYRING}"' | ||
sh 'for fpr in $(gpg --list-keys --with-colons | awk -F: \'/fpr:/ {print $10}\' | sort -u); do echo -e "5\ny\n" | gpg --batch --command-fd 0 --expert --edit-key ${fpr} trust; done' | ||
} | ||
sshagent(['projects-storage.eclipse.org-bot-ssh']) { | ||
sh './full-deploy.sh -Peclipse-sign,sonatype-oss-release,release-snapshot' | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
success { | ||
archiveArtifacts artifacts: 'build/**' | ||
} | ||
} | ||
} |
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,39 @@ | ||
pipeline { | ||
agent any | ||
|
||
environment { | ||
DOWNLOAD_AREA = '/home/data/httpd/download.eclipse.org/modeling/tmf/xtext/monorepo' | ||
REPOSITORY_PATH="${DOWNLOAD_AREA}/updates/nightly" | ||
} | ||
|
||
tools { | ||
maven "apache-maven-3.8.6" | ||
jdk "temurin-jdk17-latest" | ||
} | ||
|
||
stages { | ||
stage('Maven Tycho Build and Sign') { | ||
steps { | ||
sh './tycho-sign.sh' | ||
} | ||
} | ||
stage('Copy to download area') { | ||
steps { | ||
sshagent(['projects-storage.eclipse.org-bot-ssh']) { | ||
sh ''' | ||
echo ${REPOSITORY_PATH} | ||
ssh [email protected] "rm -rf $REPOSITORY_PATH" | ||
ssh [email protected] "mkdir -p $REPOSITORY_PATH" | ||
scp -o BatchMode=yes -r build/p2-repository/* [email protected]:$REPOSITORY_PATH/ | ||
''' | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
success { | ||
archiveArtifacts artifacts: 'build/**' | ||
} | ||
} | ||
} |
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
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
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
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
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
File renamed without changes.
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
Oops, something went wrong.