Skip to content
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

postBuild plugin manager only available in postBuild groovy #931

Merged
merged 3 commits into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions pipelines/build/common/build_base_file.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

/* groovylint-disable MethodCount */

import common.IndividualBuildConfig
import groovy.json.*

Expand Down Expand Up @@ -823,7 +825,7 @@ class Builder implements Serializable {
} else {
releaseToolUrl += "&DRY_RUN=true"
}
URLEncoder.encode(releaseToolUrl.toString(), "UTF-8")
releaseToolUrl = URLEncoder.encode(releaseToolUrl.toString(), "UTF-8")
return ["${releaseToolUrl}", "${releaseComment}"]
}
}
Expand Down Expand Up @@ -873,8 +875,10 @@ class Builder implements Serializable {
context.echo "Force auto generate AQA test jobs: ${aqaAutoGen}"
context.echo "Keep test reportdir: ${keepTestReportDir}"
context.echo "Keep release logs: ${keepReleaseLogs}"
def releaseSummary = manager.createSummary('next.svg')
releaseSummary.appendText('<b>RELEASE PUBLISH BINARIES:</b><ul>', false)

// Disabling for the moment as "manager" only available in postBuild groovy script
//def releaseSummary = manager.createSummary('next.svg')
//releaseSummary.appendText('<b>RELEASE PUBLISH BINARIES:</b><ul>', false)

jobConfigurations.each { configuration ->
jobs[configuration.key] = {
Expand Down Expand Up @@ -968,7 +972,8 @@ class Builder implements Serializable {

copyArtifactSuccess = true
def (String releaseToolUrl, String releaseComment) = dryrunReleasePublish(config)
releaseSummary.appendText("<li><a href=${releaseToolUrl}> ${releaseComment} ${config.VARIANT} ${publishName} ${config.TARGET_OS} ${config.ARCHITECTURE}</a></li>")
context.echo "dryrunReleasePublish result = ${releaseComment} : ${releaseToolUrl}"
//releaseSummary.appendText("<li><a href=${releaseToolUrl}> ${releaseComment} ${config.VARIANT} ${publishName} ${config.TARGET_OS} ${config.ARCHITECTURE}</a></li>")
}
}
context.println '[NODE SHIFT] OUT OF CONTROLLER NODE!'
Expand All @@ -992,7 +997,7 @@ class Builder implements Serializable {
}
}
context.parallel jobs
releaseSummary.appendText('</ul>', false)
//releaseSummary.appendText('</ul>', false)
// publish to github if needed
// Don't publish release automatically
if (publish && !release) {
Expand Down
Loading