-
Notifications
You must be signed in to change notification settings - Fork 1
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 #2 from PGSSoft/release-new-version
Release new version
- Loading branch information
Showing
4 changed files
with
35 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,14 @@ | ||
ios.prepareEnv(xcode: "/Applications/Xcode_10.0.app", danger_bitbucket: null) | ||
|
||
node("ios") { | ||
timeout(45) { | ||
ansiColor('xterm') { | ||
|
||
// Unlock Bitbucket Server credentials | ||
withCredentials([usernamePassword(credentialsId: 'pgs-github-PGSJenkins-token', passwordVariable: 'DANGER_GITHUB_API_TOKEN', usernameVariable: '')]) { | ||
// | ||
// Stages | ||
// Prepare node | ||
// - clean workspace | ||
// - clone repository | ||
// - update bundle | ||
stage("Prepare & clone") { | ||
deleteDir() | ||
checkout scm | ||
|
||
sh ''' | ||
# Bundler | ||
bundle install | ||
''' | ||
} | ||
|
||
// Danger | ||
stage("Danger") { | ||
sh ''' | ||
# Danger | ||
bundle exec danger | ||
''' | ||
} | ||
|
||
// Clean | ||
stage("Clean") { | ||
deleteDir() | ||
} | ||
} | ||
ios.runOniOSNode(runBlock: { | ||
// Unlock Bitbucket Server credentials | ||
withCredentials([usernamePassword(credentialsId: 'pgs-github-PGSJenkins-token', passwordVariable: 'DANGER_GITHUB_API_TOKEN', usernameVariable: '')]) { | ||
// Danger | ||
stage("Danger") { | ||
sh ''' | ||
# Danger | ||
bundle exec danger | ||
''' | ||
} | ||
} | ||
} | ||
} | ||
}) |
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 |
---|---|---|
@@ -1,40 +1,14 @@ | ||
ios.prepareEnv(xcode: "/Applications/Xcode_10.0.app") | ||
|
||
node("ios") { | ||
timeout(45) { | ||
ansiColor('xterm') { | ||
|
||
// Unlock Bitbucket Server credentials | ||
withCredentials([usernamePassword(credentialsId: 'pgs-software-bitbucket-server-danger_user', passwordVariable: 'DANGER_BITBUCKETSERVER_PASSWORD', usernameVariable: 'DANGER_BITBUCKETSERVER_USERNAME')]) { | ||
// | ||
// Stages | ||
// Prepare node | ||
// - clean workspace | ||
// - clone repository | ||
// - update bundle | ||
stage("Prepare & clone") { | ||
deleteDir() | ||
checkout scm | ||
|
||
sh ''' | ||
# Bundler | ||
bundle install | ||
''' | ||
} | ||
|
||
// Danger | ||
stage("Danger") { | ||
sh ''' | ||
# Danger | ||
bundle exec danger | ||
''' | ||
} | ||
|
||
// Clean | ||
stage("Clean") { | ||
deleteDir() | ||
} | ||
} | ||
ios.runOniOSNode(runBlock: { | ||
// Unlock Bitbucket Server credentials | ||
withCredentials([usernamePassword(credentialsId: 'pgs-software-bitbucket-server-danger_user', passwordVariable: 'DANGER_BITBUCKETSERVER_PASSWORD', usernameVariable: 'DANGER_BITBUCKETSERVER_USERNAME')]) { | ||
// Danger | ||
stage("Danger") { | ||
sh ''' | ||
# Danger | ||
bundle exec danger | ||
''' | ||
} | ||
} | ||
} | ||
} | ||
}) |
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,7 @@ | ||
.PHONY: docs push_github | ||
|
||
# Push master, develop and tags to GitHub | ||
push_github: | ||
git push github develop | ||
git push github master | ||
git push github --tags |