Skip to content

Commit

Permalink
Unify I-, Y- and P-build configuration and fix minor discrepancies
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell authored and akurtakov committed Jan 17, 2024
1 parent 9263e10 commit ea652da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
11 changes: 3 additions & 8 deletions JenkinsJobs/Builds/I_build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,7 @@ spec:
stage('Clean Workspace'){
steps {
container('jnlp') {
sh \'\'\'
cd $WORKSPACE
rm -rf *
\'\'\'
cleanWs()
}
}
}
Expand All @@ -185,7 +182,7 @@ spec:
}
}
}
stage('Genrerate environment variables'){
stage('Generate environment variables'){
steps {
container('jnlp') {
sh \'\'\'
Expand Down Expand Up @@ -274,7 +271,7 @@ spec:
container('jnlp') {
sshagent(['git.eclipse.org-bot-ssh', 'github-bot-ssh']) {
sh \'\'\'
git config --global user.email "releng-bot@eclipse.org"
git config --global user.email "eclipse-releng-bot@eclipse.org"
git config --global user.name "Eclipse Releng Bot"
cd ${WORKSPACE}/eclipse.platform.releng.aggregator/eclipse.platform.releng.aggregator/cje-production/mbscripts
./mb100_cloneRepos.sh $CJE_ROOT/buildproperties.shsource 2>&1 | tee $logDir/mb100_cloneRepos.sh.log
Expand All @@ -293,8 +290,6 @@ spec:
container('jnlp') {
sshagent (['git.eclipse.org-bot-ssh', 'github-bot-ssh', 'projects-storage.eclipse.org-bot-ssh']) {
sh \'\'\'
git config --global user.email "eclipse-releng-bot@eclipse.org"
git config --global user.name "Eclipse Releng Bot"
cd ${WORKSPACE}/eclipse.platform.releng.aggregator/eclipse.platform.releng.aggregator/cje-production/mbscripts
bash -x ./mb110_tagBuildInputs.sh $CJE_ROOT/buildproperties.shsource 2>&1 | tee $logDir/mb110_tagBuildInputs.sh.log
if [[ ${PIPESTATUS[0]} -ne 0 ]]
Expand Down
17 changes: 6 additions & 11 deletions JenkinsJobs/YBuilds/P_build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,14 @@ spec:
stage('Clean Workspace'){
steps {
container('jnlp') {
sh \'\'\'
cd $WORKSPACE
rm -rf *
\'\'\'
cleanWs()
}
}
}
stage('Setup intial configuration'){
steps {
container('jnlp') {
sshagent(['github-bot-ssh']) {
sshagent(['github-bot-ssh']) {
dir ('eclipse.platform.releng.aggregator') {
sh \'\'\'
git clone -b master git@github.com:eclipse-platform/eclipse.platform.releng.aggregator.git
Expand All @@ -160,7 +157,7 @@ spec:
}
}
}
stage('Genrerate environment variables'){
stage('Generate environment variables'){
steps {
container('jnlp') {
sh \'\'\'
Expand All @@ -169,14 +166,14 @@ spec:
./mb010_createEnvfiles.sh $CJE_ROOT/buildproperties.shsource 2>&1 | tee $logDir/mb010_createEnvfiles.sh.log
if [[ ${PIPESTATUS[0]} -ne 0 ]]
then
echo "Failed in Genrerate environment variables stage"
echo "Failed in Generate environment variables stage"
exit 1
fi
\'\'\'
}
}
}
stage('Load PGP keys'){
stage('Load PGP keys'){
environment {
KEYRING = credentials('secret-subkeys-releng.asc')
KEYRING_PASSPHRASE = credentials('secret-subkeys-releng.acs-passphrase')
Expand Down Expand Up @@ -210,7 +207,7 @@ spec:
container('jnlp') {
sshagent(['git.eclipse.org-bot-ssh', 'github-bot-ssh']) {
sh \'\'\'
git config --global user.email "releng-bot@eclipse.org"
git config --global user.email "eclipse-releng-bot@eclipse.org"
git config --global user.name "Eclipse Releng Bot"
cd ${WORKSPACE}/eclipse.platform.releng.aggregator/eclipse.platform.releng.aggregator/cje-production/mbscripts
./mb100_cloneRepos.sh $CJE_ROOT/buildproperties.shsource 2>&1 | tee $logDir/mb100_cloneRepos.sh.log
Expand All @@ -229,8 +226,6 @@ spec:
container('jnlp') {
sshagent (['git.eclipse.org-bot-ssh', 'github-bot-ssh', 'projects-storage.eclipse.org-bot-ssh']) {
sh \'\'\'
git config --global user.email "releng-bot@eclipse.org"
git config --global user.name "Eclipse Releng Bot"
cd ${WORKSPACE}/eclipse.platform.releng.aggregator/eclipse.platform.releng.aggregator/cje-production/mbscripts
bash -x ./mb110_tagBuildInputs.sh $CJE_ROOT/buildproperties.shsource 2>&1 | tee $logDir/mb110_tagBuildInputs.sh.log
if [[ ${PIPESTATUS[0]} -ne 0 ]]
Expand Down
9 changes: 2 additions & 7 deletions JenkinsJobs/YBuilds/Y_build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,7 @@ spec:
stage('Clean Workspace'){
steps {
container('jnlp') {
sh \'\'\'
cd $WORKSPACE
rm -rf *
\'\'\'
cleanWs()
}
}
}
Expand All @@ -180,7 +177,7 @@ spec:
}
}
}
stage('Genrerate environment variables'){
stage('Generate environment variables'){
steps {
container('jnlp') {
sh \'\'\'
Expand Down Expand Up @@ -288,8 +285,6 @@ spec:
container('jnlp') {
sshagent (['git.eclipse.org-bot-ssh', 'github-bot-ssh', 'projects-storage.eclipse.org-bot-ssh']) {
sh \'\'\'
git config --global user.email "releng-bot@eclipse.org"
git config --global user.name "Eclipse Releng Bot"
cd ${WORKSPACE}/eclipse.platform.releng.aggregator/eclipse.platform.releng.aggregator/cje-production/mbscripts
bash -x ./mb110_tagBuildInputs.sh $CJE_ROOT/buildproperties.shsource 2>&1 | tee $logDir/mb110_tagBuildInputs.sh.log
if [[ ${PIPESTATUS[0]} -ne 0 ]]
Expand Down

0 comments on commit ea652da

Please sign in to comment.