-
Notifications
You must be signed in to change notification settings - Fork 445
/
Makefile
51 lines (43 loc) · 1.61 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# The master images follow the normal numbering scheme in which the
# major version is used as the directory name and incorporated into
# the image name (jenkins-2-centos7 in this case). For the slave
# images we are not versioning them (they actually pull their
# jars from the jenkins master, so they don't have a jenkins version,
# so the only thing we'd version is the maven/nodejs version).
# Since these are basically samples we are just going to maintain one
# version (at least that is the initial goal). This naming system
# can be revisited in the future if we decide we need either jenkins
# or <platform> version numbers in the names.
VERSIONS="2 slave-base"
BUNDLE_PLUGINS="$(shell pwd)/2/contrib/openshift/bundle-plugins.txt"
REF=$(shell mktemp -d)
JENKINS_WAR="$(shell mktemp -d)/jenkins.war"
ifeq ($(TARGET),rhel8)
OS := rhel8
else
OS := centos8
endif
.PHONY: build
build:
VERSIONS=$(VERSIONS) hack/build.sh $(OS) $(VERSION)
.PHONY: test
test:
VERSIONS=$(VERSIONS) TAG_ON_SUCCESS=$(TAG_ON_SUCCESS) TEST_MODE=true hack/build.sh $(OS) $(VERSION)
.PHONY: smoke
smoke:
@echo "Testing the jenkins template based install on openshift"
@./scripts/test-jenkins-template-install.sh
.PHONY: e2e
e2e:
@echo "Starting e2e tests from 2/test directory"
@echo "IMAGE_NAME set in environment variable with value: $(IMAGE_NAME)"
@cd 2/test && go test
.PHONY: plugins-list
plugins-list:
@echo "Do not use this command, manually update base-plugins.txt and bundle-plugins.txt to be the same"
.PHONY: verify
verify:
./scripts/verify.sh
.PHONY: build-development-image
build-development-images:
./scripts/build-development-images.sh