<commit_before>build: releases
	docker build -t jenkinsci/workflow-demo .

run: build
	docker run -p 8080:8080 -p 8081:8081 -p 8022:22 -ti jenkinsci/workflow-demo

# TODO why is a beta version of mercurial not picked up? LATEST vs. RELEASE problem?
PLUGINS=\
	org.jenkins-ci.plugins:durable-task \
	org.jenkins-ci.plugins:git \
	org.jenkins-ci.plugins:git-client \
	org.jenkins-ci.plugins:git-server \
	org.jenkins-ci.plugins:javadoc \
	org.jenkins-ci.plugins:junit \
	org.jenkins-ci.plugins:mailer \
	org.jenkins-ci.plugins:mapdb-api \
	org.jenkins-ci.plugins:mercurial \
	org.jenkins-ci.plugins:scm-api \
	org.jenkins-ci.plugins:script-security \
	org.jenkins-ci.plugins:subversion \
	org.jenkins-ci.plugins.workflow:workflow-aggregator \
	org.jenkins-ci.plugins.workflow:workflow-api \
	org.jenkins-ci.plugins.workflow:workflow-basic-steps \
	org.jenkins-ci.plugins.workflow:workflow-cps \
	org.jenkins-ci.plugins.workflow:workflow-durable-task-step \
	org.jenkins-ci.plugins.workflow:workflow-job \
	org.jenkins-ci.plugins.workflow:workflow-scm-step \
	org.jenkins-ci.plugins.workflow:workflow-step-api \
	org.jenkins-ci.plugins.workflow:workflow-support
#	org.jenkins-ci.plugins.workflow:workflow-cps-global-lib
#	org.jenkins-ci.plugins.workflow:workflow-stm

# May define as -U to pick up newer releases; do this before make push!
CHECK_UPDATES=

# TODO using ADD with a remote URL would be more convenient, but docker-build claims that URLs like http://jenkins-updates.cloudbees.com/download/plugins/mercurial/*latest*/mercurial.hpi give a 404 (in fact they are 302 → 200)
# anyway it seems to download the entire content disregarding Last-Modified, making it unusable
releases:
	[ -f jenkins-war.war ] || mvn $(CHECK_UPDATES) org.apache.maven.plugins:maven-dependency-plugin:2.8:copy -Dartifact=org.jenkins-ci.main:jenkins-war:RELEASE:war -DoutputDirectory=. -Dmdep.stripVersion
	set -e; for ga in $(PLUGINS); do a=$$(echo $$ga | sed 's/.*\://'); [ -f JENKINS_HOME/plugins/$$a.jpi ] || (mvn $(CHECK_UPDATES) org.apache.maven.plugins:maven-dependency-plugin:2.8:copy -Dartifact=$$ga:RELEASE:hpi -DoutputDirectory=JENKINS_HOME/plugins -Dmdep.stripVersion && mv JENKINS_HOME/plugins/$$a.hpi JENKINS_HOME/plugins/$$a.jpi); touch JENKINS_HOME/plugins/$$a.jpi.pinned; done

build-snapshot: build
	[ -f ../aggregator/target/workflow-aggregator.hpi ] || mvn -f .. -DskipTests clean install
	mkdir -p snapshot/plugins
	for p in ../*/target/*.hpi; do cp -v $$p snapshot/plugins/$$(basename $${p%%.hpi}).jpi; done
	docker build -t jenkinsci/workflow-demo-snapshot snapshot

run-snapshot: build-snapshot
	docker run -p 8080:8080 -p 8081:8081 -p 8022:22 -ti jenkinsci/workflow-demo-snapshot

clean:
	rm -rf jenkins-war.war JENKINS_HOME/plugins snapshot/plugins
<commit_msg>Skipping plugins that have not been released yet, so they can still be in the list.<commit_after>build: releases
	docker build -t jenkinsci/workflow-demo .

run: build
	docker run -p 8080:8080 -p 8081:8081 -p 8022:22 -ti jenkinsci/workflow-demo

# TODO why is a beta version of mercurial not picked up? LATEST vs. RELEASE problem?
PLUGINS=\
	org.jenkins-ci.plugins:durable-task \
	org.jenkins-ci.plugins:git \
	org.jenkins-ci.plugins:git-client \
	org.jenkins-ci.plugins:git-server \
	org.jenkins-ci.plugins:javadoc \
	org.jenkins-ci.plugins:junit \
	org.jenkins-ci.plugins:mailer \
	org.jenkins-ci.plugins:mapdb-api \
	org.jenkins-ci.plugins:mercurial \
	org.jenkins-ci.plugins:scm-api \
	org.jenkins-ci.plugins:script-security \
	org.jenkins-ci.plugins:subversion \
	org.jenkins-ci.plugins.workflow:workflow-aggregator \
	org.jenkins-ci.plugins.workflow:workflow-api \
	org.jenkins-ci.plugins.workflow:workflow-basic-steps \
	org.jenkins-ci.plugins.workflow:workflow-cps \
	org.jenkins-ci.plugins.workflow:workflow-cps-global-lib \
	org.jenkins-ci.plugins.workflow:workflow-durable-task-step \
	org.jenkins-ci.plugins.workflow:workflow-job \
	org.jenkins-ci.plugins.workflow:workflow-scm-step \
	org.jenkins-ci.plugins.workflow:workflow-step-api \
	org.jenkins-ci.plugins.workflow:workflow-support
#	org.jenkins-ci.plugins.workflow:workflow-stm

# May define as -U to pick up newer releases; do this before make push!
CHECK_UPDATES=

# TODO using ADD with a remote URL would be more convenient, but docker-build claims that URLs like http://jenkins-updates.cloudbees.com/download/plugins/mercurial/*latest*/mercurial.hpi give a 404 (in fact they are 302 → 200)
# anyway it seems to download the entire content disregarding Last-Modified, making it unusable
releases:
	[ -f jenkins-war.war ] || mvn $(CHECK_UPDATES) org.apache.maven.plugins:maven-dependency-plugin:2.8:copy -Dartifact=org.jenkins-ci.main:jenkins-war:RELEASE:war -DoutputDirectory=. -Dmdep.stripVersion
	set -e; for ga in $(PLUGINS); do a=$$(echo $$ga | sed 's/.*\://'); [ -f JENKINS_HOME/plugins/$$a.jpi ] || (mvn $(CHECK_UPDATES) org.apache.maven.plugins:maven-dependency-plugin:2.8:copy -Dartifact=$$ga:RELEASE:hpi -DoutputDirectory=JENKINS_HOME/plugins -Dmdep.stripVersion && mv JENKINS_HOME/plugins/$$a.hpi JENKINS_HOME/plugins/$$a.jpi && touch JENKINS_HOME/plugins/$$a.jpi.pinned) || echo skipping $$a; done

build-snapshot: build
	[ -f ../aggregator/target/workflow-aggregator.hpi ] || mvn -f .. -DskipTests clean install
	mkdir -p snapshot/plugins
	for p in ../*/target/*.hpi; do cp -v $$p snapshot/plugins/$$(basename $${p%%.hpi}).jpi; done
	docker build -t jenkinsci/workflow-demo-snapshot snapshot

run-snapshot: build-snapshot
	docker run -p 8080:8080 -p 8081:8081 -p 8022:22 -ti jenkinsci/workflow-demo-snapshot

clean:
	rm -rf jenkins-war.war JENKINS_HOME/plugins snapshot/plugins

{'fraction_non_alphanumeric': 0.13765541740674955, 'fraction_numerical': 0.02024866785079929, 'mean_word_length': 4.362857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4350066', 'n_tokens_mistral': 2227, 'n_tokens_neox': 2094, 'n_words': 404}