-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-128 Fix polling issue. NOT-BUILT is also saved for the record
- Loading branch information
Claus Schneider (Praqma)
committed
Aug 21, 2018
1 parent
1b83e1b
commit 39c7d3e
Showing
17 changed files
with
291 additions
and
110 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
def pattern = 'PipeDeclPreSCM' | ||
|
||
def triggerBranchPattern = '*/ready' + pattern + '/*' | ||
def integrationBranch = 'master' + pattern | ||
pipeline{ | ||
agent none | ||
stages { | ||
stage ('Checkout') { | ||
agent { | ||
label 'master' | ||
} | ||
steps { | ||
checkout scm // just reference SCM in the job executing the Pipeline script. | ||
// sh ''' | ||
// if [ -e ./build_failed.md ]; then | ||
// exit 1 | ||
// fi | ||
// ''' | ||
} | ||
post { | ||
always { | ||
pretestedIntegrationPublisher() | ||
} | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
src/test/resources/EndUserTesting/JenkinsfileScriptedCheckoutSCM
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 @@ | ||
|
||
def pattern = 'PipeScriptedCheckoutSCM' | ||
|
||
def triggerBranchPattern = '*/ready' + pattern + '/*' | ||
def integrationBranch = 'master' + pattern | ||
node { | ||
stage ('Checkout'){ | ||
|
||
try { | ||
checkout([ | ||
$class: 'GitSCM', | ||
branches: [[name: triggerBranchPattern ]], | ||
userRemoteConfigs: [[ | ||
name: 'origin', | ||
url: '[email protected]:bicschneider/test-git-phlow-plugin.git' | ||
]], | ||
extensions: [ | ||
pretestedIntegration( | ||
gitIntegrationStrategy: accumulated(), | ||
integrationBranch: integrationBranch, | ||
repoName: 'origin') | ||
, | ||
[ $class: 'ChangelogToBranch', | ||
options: [compareRemote: 'origin', compareTarget: integrationBranch] | ||
], | ||
[$class: 'PruneStaleBranch'] | ||
] | ||
]) | ||
} catch(Exception e) { | ||
echo "Leave further processing to publisher" | ||
} | ||
// try { | ||
// sh ''' | ||
// if [ -e ./build_failed.md ]; then | ||
// exit 1 | ||
// fi | ||
// ''' | ||
// } catch(Exception e) { | ||
// currentBuild.result = 'UNSTABLE' | ||
// } | ||
pretestedIntegrationPublisher() | ||
} | ||
} |
7 changes: 5 additions & 2 deletions
7
...ources/EndUserTesting/JenkinsfileScripted → .../EndUserTesting/JenkinsfileScriptedPreSCM
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
Binary file modified
BIN
+1.14 KB
(120%)
src/test/resources/EndUserTesting/createRepoForIntegrationSituations.sh
Binary file not shown.
Oops, something went wrong.