-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hacktoberfest [JENKINS-69731] Enhance @Library annotation to load same version (feature branch name) of library as pipeline script from SCM #19
base: master
Are you sure you want to change the base?
Commits on Sep 29, 2022
-
LibraryConfiguration: extend with allowBRANCH_NAME for literal use of…
… @Library('libname@${BRANCH_NAME}') [JENKINS-69731] To simplify co-existence of feature-branched pipeline scripts with feature-branched Jenkins Shared Libraries, allow literal use of @Library('libname@${BRANCH_NAME}') _ lines to load a variant of a trusted (global) library with one case of arbitrary branch naming. This should be permitted by allowBRANCH_NAME checkbox (independent of generic allowVersionOverride setting) in the first place. If enabled, the value of BRANCH_NAME environment variable set by the current build's Run object would be queried, and if resolvable - verified with retriever.validateVersion() to match the backend (Legacy SCM, Modern SCM, and other retrievers like HTTP/ZIP from workflow-cps-global-lib-http-plugin).
Configuration menu - View commit details
-
Copy full SHA for a937477 - Browse repository at this point
Copy the full SHA a937477View commit details -
LibraryConfigurationTest.java: add tests for LibraryConfiguration.def…
…aultedVersion() for JENKINS-69731 related behaviors
Configuration menu - View commit details
-
Copy full SHA for 15a252a - Browse repository at this point
Copy the full SHA 15a252aView commit details -
SCMSourceRetrieverTest.java: add checkDefaultVersion() for interactio…
…ns with BRANCH_NAME [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for bf228e4 - Browse repository at this point
Copy the full SHA bf228e4View commit details -
SCMSourceRetrieverTest: checkDefaultVersion(): also test non-checkout…
… of an absent libname@bogusbranch
Configuration menu - View commit details
-
Copy full SHA for 61db728 - Browse repository at this point
Copy the full SHA 61db728View commit details -
LibraryConfiguration: extend with allowBRANCH_NAME_PR to let CHANGE_B…
…RANCH and CHANGE_TARGET be considered as fallbacks [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 2e3c855 - Browse repository at this point
Copy the full SHA 2e3c855View commit details -
LibraryConfiguration: defaultedVersion(): for WorkflowRun check getSC…
…Ms() and handle if it is GitSCM with branches, before looking at envvars [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 0f89b22 - Browse repository at this point
Copy the full SHA 0f89b22View commit details -
LibraryConfiguration: defaultedVersion(): check for BRANCH_NAME first…
…; and then it is safer to check getSCMs() not for WorkflowRun, but for the FlowDefinition from WorkflowJob [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for cf3d140 - Browse repository at this point
Copy the full SHA cf3d140View commit details -
SCMSourceRetrieverTest: rename checkDefaultVersion() to checkDefaultV…
…ersionStaticStrings() and limit influence of caller-defined BRANCH_NAME [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for eb73ce4 - Browse repository at this point
Copy the full SHA eb73ce4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ef66ae - Browse repository at this point
Copy the full SHA 3ef66aeView commit details -
SCMSourceRetrieverTest.java: add checkDefaultVersion_MBP() and checkD…
…efaultVersion_BRANCH_NAME_notAllowed() cases [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 7ddf8e6 - Browse repository at this point
Copy the full SHA 7ddf8e6View commit details -
SCMSourceRetrieverTest.java: optimize tests using MBP to not build sa…
…me jobs twice [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 4f792f6 - Browse repository at this point
Copy the full SHA 4f792f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d95881 - Browse repository at this point
Copy the full SHA 9d95881View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0694dd1 - Browse repository at this point
Copy the full SHA 0694dd1View commit details
Commits on Sep 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 824a204 - Browse repository at this point
Copy the full SHA 824a204View commit details -
SCMSourceRetrieverTest.java: add PoC checkDefaultVersion_MBP_singleBr…
…anch() - Need help setting up MBP+SingleSCMSource [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 553aba3 - Browse repository at this point
Copy the full SHA 553aba3View commit details -
LibraryConfiguration: add optional traceBRANCH_NAME toggle, and lots …
…of trace info about decision making [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for bcba445 - Browse repository at this point
Copy the full SHA bcba445View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b5255c - Browse repository at this point
Copy the full SHA 6b5255cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a661a13 - Browse repository at this point
Copy the full SHA a661a13View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9700565 - Browse repository at this point
Copy the full SHA 9700565View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30d21b9 - Browse repository at this point
Copy the full SHA 30d21b9View commit details -
SCMSourceRetrieverTest: separate checkDefaultVersion_inline_BRANCH_NA…
…ME() from checkDefaultVersion_inline_staticStrings() [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 34718a4 - Browse repository at this point
Copy the full SHA 34718a4View commit details -
SCMSourceRetrieverTest: add checkDefaultVersion_MBPsingleBranch_BRANC…
…H_NAME() [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 8e92f64 - Browse repository at this point
Copy the full SHA 8e92f64View commit details -
LibraryConfiguration: defaultedVersion(): unblock WorkflowRun handlin…
…g [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 5dc85dd - Browse repository at this point
Copy the full SHA 5dc85ddView commit details -
SCMSourceRetrieverTest: checkDefaultVersion_inline_BRANCH_NAME(): tes…
…t that many @Library lines do not confuse list of SCMs for BRANCH_NAME resolution [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for a9aa8f1 - Browse repository at this point
Copy the full SHA a9aa8f1View commit details -
SCMSourceRetrieverTest: add checkDefaultVersion_singleBranch_BRANCH_N…
…AME() [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 418c572 - Browse repository at this point
Copy the full SHA 418c572View commit details
Commits on Oct 1, 2022
-
LibraryConfiguration: defaultedVersion(): add allowVersionEnvvar for …
…@Library('libname@${env.VARNAME}') support [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 54bb3e9 - Browse repository at this point
Copy the full SHA 54bb3e9View commit details -
SCMSourceRetrieverTest: add PoC for checkDefaultVersion_inline_allowV…
…ersionEnvvar() [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for d47dad5 - Browse repository at this point
Copy the full SHA d47dad5View commit details -
help-allowVersionEnvvar.html, help-allowBRANCH_NAME.html: stress that…
… "Tokens spelled in @Library annotation are not Groovy variables!" [JENKINS-69731] ...however for simplicity of "naive use" without knowledge of the feature added with JENKINS-69731, the markup used for these semi-variable version specifications is intentionally similar to what "real" Groovy coders would use in their pipeline scripts.
Configuration menu - View commit details
-
Copy full SHA for 811fb82 - Browse repository at this point
Copy the full SHA 811fb82View commit details -
SCMSourceRetrieverTest: add checkDefaultVersion_singleBranch_BRANCH_N…
…AME_doubleQuotes() [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 43d45b8 - Browse repository at this point
Copy the full SHA 43d45b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38f380f - Browse repository at this point
Copy the full SHA 38f380fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 68902fd - Browse repository at this point
Copy the full SHA 68902fdView commit details -
SCMSourceRetrieverTest: make checkDefaultVersion_inline_allowVersionE…
…nvvar() useful for at least one realistic use-case [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for dddd3ac - Browse repository at this point
Copy the full SHA dddd3acView commit details -
LibraryConfiguration: defaultedVersion(): if there were no SCMs assoc…
…iated with FlowDefinition of a WorkflowJob, ask in the WorkflowJob itself for completeness [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 48ad0fe - Browse repository at this point
Copy the full SHA 48ad0feView commit details -
SCMSourceRetrieverTest: extend checkDefaultVersion_inline_allowVersio…
…nEnvvar() attempts for better test coverage [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for eeba94c - Browse repository at this point
Copy the full SHA eeba94cView commit details -
LibraryConfiguration: defaultedVersion(): first check if WorkflowJob …
…has a BranchJobProperty, then envvar and then associated SCMs [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for ee36d66 - Browse repository at this point
Copy the full SHA ee36d66View commit details
Commits on Oct 2, 2022
-
SCMSourceRetrieverTest: checkDefaultVersion_MBPsingleBranch_*(): try …
…mbp.save() [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 83cea07 - Browse repository at this point
Copy the full SHA 83cea07View commit details -
SCMSourceRetrieverTest: checkDefaultVersion_inline_allowVersionEnvvar…
…(): let devs easily tinker on currently failing part of test setup [JENKINS-69731] This keeps build requirements and imports in the loop, so compilers and IDEs do not complain or optimize away "unused" lines.
Configuration menu - View commit details
-
Copy full SHA for cf2c069 - Browse repository at this point
Copy the full SHA cf2c069View commit details -
LibraryConfiguration: refactor irky defaultedVersionSCM() helper out …
…of defaultedVersion() [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 6d74aea - Browse repository at this point
Copy the full SHA 6d74aeaView commit details -
LibraryConfiguration and tests: rename traceBRANCH_NAME to more gener…
…ic and camel-cased traceDefaultedVersion [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 6097f6a - Browse repository at this point
Copy the full SHA 6097f6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85e96e3 - Browse repository at this point
Copy the full SHA 85e96e3View commit details -
SCMSourceRetrieverTest: complete the checkDefaultVersion_MBPsingleBra…
…nch_*() cases [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 4ce1164 - Browse repository at this point
Copy the full SHA 4ce1164View commit details
Commits on Oct 9, 2022
-
SCMSourceRetrieverTest: checkDefaultVersion_inline_allowVersionEnvvar…
…(): add some debug traces [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for ce8b820 - Browse repository at this point
Copy the full SHA ce8b820View commit details -
SCMSourceRetrieverTest: checkDefaultVersion_inline_allowVersionEnvvar…
…(): add FreeStyle test line for ideas about building on an agent [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 2d4bd48 - Browse repository at this point
Copy the full SHA 2d4bd48View commit details -
SCMSourceRetrieverTest: checkDefaultVersion_inline_allowVersionEnvvar…
…(): add envvar injection tests with EnvironmentContributor [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 6767dc2 - Browse repository at this point
Copy the full SHA 6767dc2View commit details -
SCMSourceRetrieverTest: checkDefaultVersion_inline_allowVersionEnvvar…
…(): update comments [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for edd1ddb - Browse repository at this point
Copy the full SHA edd1ddbView commit details -
SCMSourceRetrieverTest: checkDefaultVersion_inline_allowVersionEnvvar…
…(): drop attempts with envinject [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 5190214 - Browse repository at this point
Copy the full SHA 5190214View commit details -
SCMSourceRetrieverTest: checkDefaultVersion_inline_allowVersionEnvvar…
…(): add back ecOrig to ecList [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 06a3e09 - Browse repository at this point
Copy the full SHA 06a3e09View commit details -
SCMSourceRetrieverTest: checkDefaultVersion_inline_allowVersionEnvvar…
…(): WorkflowRun only accepts injected envvars if global config does not override them [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for f4c53c7 - Browse repository at this point
Copy the full SHA f4c53c7View commit details -
SCMSourceRetrieverTest: checkDefaultVersion_inline_allowVersionEnvvar…
…(): un-block test with injected envvars [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for d529421 - Browse repository at this point
Copy the full SHA d529421View commit details
Commits on Oct 10, 2022
-
SCMSourceRetrieverTest: checkDefaultVersion_inline_allowVersionEnvvar…
…(): tag debug printouts with build number [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 71c51c8 - Browse repository at this point
Copy the full SHA 71c51c8View commit details -
SCMSourceRetrieverTest: checkDefaultVersion_inline_allowVersionEnvvar…
…(): play with "built-in" node envvars [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 9e20d78 - Browse repository at this point
Copy the full SHA 9e20d78View commit details -
SCMSourceRetrieverTest: drop separate checkDefaultVersion_inline_allo…
…wVersionEnvvar_builtIn() [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 3cb60c0 - Browse repository at this point
Copy the full SHA 3cb60c0View commit details
Commits on Oct 13, 2022
-
SCMSourceRetrieverTest: add checkDefaultVersion_singleBranch_BRANCH_N…
…AME_after_staticStrings() for some TDD [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for ba01128 - Browse repository at this point
Copy the full SHA ba01128View commit details -
LibraryConfiguration: defaultedVersionSCM(): avoid WorkflowJob.getSCM…
…s(), it does not give the answers we are looking for
Configuration menu - View commit details
-
Copy full SHA for 863b170 - Browse repository at this point
Copy the full SHA 863b170View commit details -
Configuration menu - View commit details
-
Copy full SHA for dea552f - Browse repository at this point
Copy the full SHA dea552fView commit details
Commits on Oct 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 70b029c - Browse repository at this point
Copy the full SHA 70b029cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 786092d - Browse repository at this point
Copy the full SHA 786092dView commit details -
SCMSourceRetrieverTest: refactor new tests with sampleRepo1Content*()…
… helpers [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for be0c051 - Browse repository at this point
Copy the full SHA be0c051View commit details -
SCMSourceRetrieverTest: clarify in surefire log that checkoutDirector…
…iesAreNotReusedByDifferentScms() is skipped on Windows
Configuration menu - View commit details
-
Copy full SHA for d67c2d1 - Browse repository at this point
Copy the full SHA d67c2d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for db74431 - Browse repository at this point
Copy the full SHA db74431View commit details -
SCMSourceRetrieverTest.java: add checkDefaultVersion_singleBranch_BRA…
…NCH_NAME_lightweight() [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 812d12d - Browse repository at this point
Copy the full SHA 812d12dView commit details -
LibraryConfiguration.java: defaultedVersionSCM(): avoid get()ing from…
… empty array [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 6ab574a - Browse repository at this point
Copy the full SHA 6ab574aView commit details -
LibraryConfiguration.java: defaultedVersionSCM(): check for nuances o…
…f CpsScmFlowDefinition [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 2d098a5 - Browse repository at this point
Copy the full SHA 2d098a5View commit details
Commits on Oct 18, 2022
-
LibraryConfiguration.java: further refactor defaultedVersionSCM() to …
…separate extractDefaultedVersionGitSCM() hack in a scalable manner [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for 6379716 - Browse repository at this point
Copy the full SHA 6379716View commit details -
LibraryConfiguration.java: attempt to first extractDefaultedVersionSC…
…MFS() [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for ac9f40a - Browse repository at this point
Copy the full SHA ac9f40aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b95c46a - Browse repository at this point
Copy the full SHA b95c46aView commit details
Commits on Oct 19, 2022
-
LibraryConfiguration.java: extractDefaultedVersionSCMFS(): avoid redu…
…ndant null-checks (spotbugs) [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for a943713 - Browse repository at this point
Copy the full SHA a943713View commit details -
LibraryConfiguration.java: extractDefaultedVersionSCMFS(): placeholde…
…r to get runVersion from SCMHead (needs practical confirmation) [JENKINS-69731]
Configuration menu - View commit details
-
Copy full SHA for d039e50 - Browse repository at this point
Copy the full SHA d039e50View commit details
Commits on Nov 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 48548ae - Browse repository at this point
Copy the full SHA 48548aeView commit details
Commits on Mar 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5ab9713 - Browse repository at this point
Copy the full SHA 5ab9713View commit details
Commits on Apr 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 65a7d02 - Browse repository at this point
Copy the full SHA 65a7d02View commit details
Commits on Aug 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c2cf4b5 - Browse repository at this point
Copy the full SHA c2cf4b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6668195 - Browse repository at this point
Copy the full SHA 6668195View commit details -
SCMSourceRetrieverTest: provide directly a sampleRepoNotifyCommit() t…
…o work around some GitSampleRepoRule.notifyCommit() issue
Configuration menu - View commit details
-
Copy full SHA for c1082b9 - Browse repository at this point
Copy the full SHA c1082b9View commit details
Commits on Oct 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 02cf65b - Browse repository at this point
Copy the full SHA 02cf65bView commit details
Commits on Nov 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7926f8c - Browse repository at this point
Copy the full SHA 7926f8cView commit details
Commits on Jan 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7329664 - Browse repository at this point
Copy the full SHA 7329664View commit details
Commits on Mar 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b8c4a88 - Browse repository at this point
Copy the full SHA b8c4a88View commit details