-
Notifications
You must be signed in to change notification settings - Fork 542
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
2 changed files
with
4 additions
and
39 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 |
---|---|---|
|
@@ -31,48 +31,13 @@ pipeline { | |
} | ||
|
||
stages { | ||
stage("git") { | ||
parallel { | ||
stage("git checkout mac") { | ||
when { | ||
expression { | ||
return true | ||
} | ||
} | ||
agent { | ||
label targetMac | ||
} | ||
steps { | ||
git( | ||
url: "[email protected]:tutao/tutanota.git", | ||
branch: params.BRANCH_NAME, | ||
changelog: true, | ||
poll: true | ||
) | ||
} | ||
} | ||
|
||
stage("git fetch and switch to branch") { | ||
|
||
steps { | ||
git( | ||
url: "[email protected]:tutao/tutanota.git", | ||
branch: params.BRANCH_NAME, | ||
changelog: true, | ||
poll: true | ||
) | ||
|
||
} | ||
} | ||
} | ||
} | ||
stage("sync submodules") { | ||
steps { | ||
sh ''' | ||
sh """ git switch ${params.BRANCH_NAME} | ||
git submodule init | ||
git submodule sync --recursive | ||
git submodule update | ||
''' | ||
""" | ||
script { | ||
def successfulMasterFetch = sh(returnStatus: true, script: "git fetch origin master:master").toInteger() | ||
if (successfulMasterFetch != 0) { | ||
|
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