Skip to content

Add Jenkinsfile for CI build#153

Merged
asfgit merged 1 commit intoapache:masterfrom
tbouron:feature/docker
May 2, 2018
Merged

Add Jenkinsfile for CI build#153
asfgit merged 1 commit intoapache:masterfrom
tbouron:feature/docker

Conversation

@tbouron
Copy link
Copy Markdown
Member

@tbouron tbouron commented May 1, 2018

This capture the current Jenkins configuration, so that is repeatable and documented.

Copy link
Copy Markdown
Member

@m4rkmckenna m4rkmckenna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Jenkinsfile Outdated
])
}

// TODO: Build full brooklyn project
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be in here? Surely the trigger will be built into the top level brooklyn build job? I'd have thought it's not up to upstream jobs like this to decide what downstream jobs need to be triggered, rather it's up to any number of downstreams to see this job succeeding and then decide to rebuild themselves?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah you are right @geomacy I can use pipelineTriggers into the downstream project. I'll remove the TODO then

catchError {
def environmentDockerImage

def dockerTag = env.BUILD_TAG.replace('%2F', '-')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why's this needed? The tags have the form jenkins-brooklyn-library-master-docker-179

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@geomacy this is needed because if the job name contains a / (which is possible as the name will be the actual branch to build) it will be replaced by the URL escaped version, i.e. %2F. However, docker tag accepts only alphanumerical characters + ., - and _

@asfgit asfgit merged commit a85a625 into apache:master May 2, 2018
asfgit pushed a commit that referenced this pull request May 2, 2018
Add Jenkinsfile for CI build

This capture the current Jenkins configuration, so that is repeatable and documented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants