Skip to content
Failed

Console Output

Started by user PseudoKnight
Running as SYSTEM
Building in workspace /var/jenkins_home/workspace/CHIRC
The recommended git tool is: NONE
No credentials specified
 > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/CHIRC/.git # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/PseudoKnight/CHIRC # timeout=10
Fetching upstream changes from https://github.com/PseudoKnight/CHIRC
 > git --version # timeout=10
 > git --version # 'git version 2.39.2'
 > git fetch --tags --force --progress -- https://github.com/PseudoKnight/CHIRC +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision 1ec7e0a0a8859ea61652a3caf20082333475815d (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 1ec7e0a0a8859ea61652a3caf20082333475815d # timeout=10
Commit message: "Update deprecated method"
 > git rev-list --no-walk 689e1177e8f88a912c99443f89b8ba78f6ffb71a # timeout=10
Parsing POMs
Established TCP socket on 34683
[CHIRC] $ /usr/lib/jvm/temurin-8-jdk-amd64/bin/java -cp /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.14.jar:/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.9.6/boot/plexus-classworlds-2.7.0.jar:/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.9.6/conf/logging jenkins.maven3.agent.Maven35Main /var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.9.6 /var/jenkins_home/war/WEB-INF/lib/remoting-3160.vd76b_9ddd10cc.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.14.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.14.jar 34683
Exception in thread "main" java.lang.UnsupportedClassVersionError: hudson/remoting/Launcher has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.findClassInternal(ClassRealm.java:313)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:432)
	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
	at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:136)
	at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:66)
ERROR: ================================================================================
ERROR: Invalid project setup: Connection reset
ERROR: [JENKINS-18403][JENKINS-28294] JDK 'JDK-8' not supported to run Maven projects.
ERROR: Maven projects have to be launched with a Java version greater or equal to the minimum version required by the controller.
ERROR: Use the Maven JDK Toolchains (plugin) to build your maven project with an older JDK.
ERROR: Retrying with agent Java and setting compile/test properties to point to /usr/lib/jvm/temurin-8-jdk-amd64.
ERROR: ================================================================================
Established TCP socket on 34701
[CHIRC] $ /opt/java/openjdk/bin/java -cp /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.14.jar:/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.9.6/boot/plexus-classworlds-2.7.0.jar:/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.9.6/conf/logging jenkins.maven3.agent.Maven35Main /var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.9.6 /var/jenkins_home/war/WEB-INF/lib/remoting-3160.vd76b_9ddd10cc.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.14.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.14.jar 34701
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven:  -B -f /var/jenkins_home/workspace/CHIRC/pom.xml clean package
[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------------< com.entityreborn:chirc >-----------------------
[INFO] Building CHIRC 0.0.1
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- clean:3.2.0:clean (default-clean) @ chirc ---
[INFO] Deleting /var/jenkins_home/workspace/CHIRC/target
[INFO] 
[INFO] --- buildnumber:1.2:create (default) @ chirc ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: /bin/sh -c cd /var/jenkins_home/workspace/CHIRC && git rev-parse --verify HEAD
[INFO] Working directory: /var/jenkins_home/workspace/CHIRC
[INFO] Storing buildNumber: 1ec7e0a0a8859ea61652a3caf20082333475815d at timestamp: 1708754022470
[INFO] Executing: /bin/sh -c cd /var/jenkins_home/workspace/CHIRC && git rev-parse --verify HEAD
[INFO] Working directory: /var/jenkins_home/workspace/CHIRC
[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ chirc ---
[INFO] skip non existing resourceDirectory /var/jenkins_home/workspace/CHIRC/src/main/resources
[INFO] 
[INFO] --- compiler:2.3.2:compile (default-compile) @ chirc ---
[INFO] Compiling 4 source files to /var/jenkins_home/workspace/CHIRC/target/classes
[INFO] 
[INFO] --- processor:2.2.4:process (process) @ chirc ---
Processing com.entityreborn.chirc.Tracking
Extension 'CHIRC' checks out ok!
[WARNING] diagnostic: warning: Supported source version 'RELEASE_8' from annotation processor 'com.laytonsmith.core.extensions.ExtensionAnnotationProcessor' less than -source '17'
[INFO] 
[INFO] >>> exec:1.2.1:java (cache-annotations) > validate @ chirc >>>
[INFO] 
[INFO] --- buildnumber:1.2:create (default) @ chirc ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: /bin/sh -c cd /var/jenkins_home/workspace/CHIRC && git rev-parse --verify HEAD
[INFO] Working directory: /var/jenkins_home/workspace/CHIRC
[INFO] Storing buildNumber: 1ec7e0a0a8859ea61652a3caf20082333475815d at timestamp: 1708754041988
[INFO] Executing: /bin/sh -c cd /var/jenkins_home/workspace/CHIRC && git rev-parse --verify HEAD
[INFO] Working directory: /var/jenkins_home/workspace/CHIRC
[INFO] Storing buildScmBranch: UNKNOWN
[WARNING] Failed to getClass for org.codehaus.mojo.exec.ExecJavaMojo
[INFO] 
[INFO] <<< exec:1.2.1:java (cache-annotations) < validate @ chirc <<<
[INFO] 
[INFO] 
[INFO] --- exec:1.2.1:java (cache-annotations) @ chirc ---
-- Caching annotations --
Scanning for classes in /var/jenkins_home/workspace/CHIRC/target/classes
Outputting file to directory /var/jenkins_home/workspace/CHIRC/target/classes
Done writing jarInfo.ser, which took 731 ms.
-- Checking for custom compile errors --
-- Finished with custom compiler checks --
[INFO] 
[INFO] --- resources:3.3.1:testResources (default-testResources) @ chirc ---
[INFO] skip non existing resourceDirectory /var/jenkins_home/workspace/CHIRC/src/test/resources
[INFO] 
[INFO] --- compiler:2.3.2:testCompile (default-testCompile) @ chirc ---
[INFO] No sources to compile
[INFO] 
[INFO] --- surefire:3.2.2:test (default-test) @ chirc ---
[INFO] No tests to run.
[JENKINS] Recording test results
[INFO] 
[INFO] --- jar:2.4:jar (default-jar) @ chirc ---
[INFO] Building jar: /var/jenkins_home/workspace/CHIRC/target/chirc-0.0.1.jar
[INFO] 
[INFO] --- shade:1.4:shade (ShadedBundle) @ chirc ---
[INFO] Including com.entityreborn.socbot:SocCore:jar:0.0.0 in the shaded jar.
[INFO] Excluding com.sk89q:commandhelper:jar:3.3.4-SNAPSHOT from the shaded jar.
[INFO] Excluding org.spigotmc:spigot-api:jar:1.16.2-R0.1-SNAPSHOT from the shaded jar.
[INFO] Excluding commons-lang:commons-lang:jar:2.6 from the shaded jar.
[INFO] Excluding com.google.guava:guava:jar:21.0 from the shaded jar.
[INFO] Excluding net.md-5:bungeecord-chat:jar:1.16-R0.3 from the shaded jar.
[INFO] Excluding com.googlecode.json-simple:json-simple:jar:1.1.1 from the shaded jar.
[INFO] Excluding org.mindrot:jBCrypt:jar:1.0 from the shaded jar.
[INFO] Excluding org.perf4j:perf4j:jar:0.9.16 from the shaded jar.
[INFO] Excluding org.xerial:sqlite-jdbc:jar:3.21.0.1 from the shaded jar.
[INFO] Excluding redis.clients:jedis:jar:2.9.0 from the shaded jar.
[INFO] Excluding org.apache.commons:commons-pool2:jar:2.4.2 from the shaded jar.
[INFO] Excluding mysql:mysql-connector-java:jar:8.0.18 from the shaded jar.
[INFO] Excluding com.google.protobuf:protobuf-java:jar:3.6.1 from the shaded jar.
[INFO] Excluding postgresql:postgresql:jar:9.1-901-1.jdbc4 from the shaded jar.
[INFO] Excluding com.microsoft.sqlserver:mssql-jdbc:jar:8.2.2.jre8 from the shaded jar.
[INFO] Excluding org.yaml:snakeyaml:jar:1.26 from the shaded jar.
[INFO] Excluding org.apache.commons:commons-io:jar:2.4 from the shaded jar.
[INFO] Excluding com.jcraft:jsch:jar:0.1.54 from the shaded jar.
[INFO] Excluding net.sourceforge.jchardet:jchardet:jar:1.0 from the shaded jar.
[INFO] Excluding org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:jar:1.0.2 from the shaded jar.
[INFO] Excluding org.apache.oltu.oauth2:org.apache.oltu.oauth2.common:jar:1.0.2 from the shaded jar.
[INFO] Excluding org.json:json:jar:20140107 from the shaded jar.
[INFO] Excluding org.slf4j:slf4j-api:jar:1.7.7 from the shaded jar.
[INFO] Excluding org.brotli:dec:jar:0.1.2 from the shaded jar.
[INFO] Excluding commons-codec:commons-codec:jar:1.11 from the shaded jar.
[INFO] Excluding org.ow2.asm:asm-all:jar:6.0_BETA from the shaded jar.
[INFO] Excluding jline:jline:jar:2.14.5 from the shaded jar.
[INFO] Excluding javax.mail:mail:jar:1.5.0-b01 from the shaded jar.
[INFO] Excluding javax.activation:activation:jar:1.1.1 from the shaded jar.
[INFO] Excluding org.eclipse.lsp4j:org.eclipse.lsp4j:jar:0.8.0 from the shaded jar.
[INFO] Excluding org.eclipse.lsp4j:org.eclipse.lsp4j.generator:jar:0.8.0 from the shaded jar.
[INFO] Excluding org.eclipse.xtend:org.eclipse.xtend.lib:jar:2.18.0 from the shaded jar.
[INFO] Excluding org.eclipse.xtext:org.eclipse.xtext.xbase.lib:jar:2.18.0 from the shaded jar.
[INFO] Excluding org.eclipse.xtend:org.eclipse.xtend.lib.macro:jar:2.18.0 from the shaded jar.
[INFO] Excluding org.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc:jar:0.8.0 from the shaded jar.
[INFO] Excluding io.swagger.core.v3:swagger-annotations:jar:2.0.0 from the shaded jar.
[INFO] Excluding com.squareup.okhttp:okhttp:jar:2.7.5 from the shaded jar.
[INFO] Excluding com.squareup.okio:okio:jar:1.6.0 from the shaded jar.
[INFO] Excluding com.squareup.okhttp:logging-interceptor:jar:2.7.5 from the shaded jar.
[INFO] Excluding com.google.code.gson:gson:jar:2.8.1 from the shaded jar.
[INFO] Excluding io.gsonfire:gson-fire:jar:1.8.3 from the shaded jar.
[INFO] Excluding org.threeten:threetenbp:jar:1.3.5 from the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /var/jenkins_home/workspace/CHIRC/target/chirc-0.0.1.jar with /var/jenkins_home/workspace/CHIRC/target/chirc-0.0.1-shaded.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  37.830 s
[INFO] Finished at: 2024-02-23T22:54:12-07:00
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving /var/jenkins_home/workspace/CHIRC/dependency-reduced-pom.xml to com.entityreborn/chirc/0.0.1/chirc-0.0.1.pom
[JENKINS] Archiving /var/jenkins_home/workspace/CHIRC/target/chirc-0.0.1.jar to com.entityreborn/chirc/0.0.1/chirc-0.0.1.jar
channel stopped
Setting project description with contents of file [README.md]
ERROR: Processing failed due to a bug in the code. Please report this to the issue tracker (https://jenkins.io/redirect/report-an-issue).
java.lang.RuntimeException: org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Error processing tokens
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper.expand(DescriptionSetterWrapper.java:136)
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper.setProjectDescription(DescriptionSetterWrapper.java:110)
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper.access$000(DescriptionSetterWrapper.java:50)
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper$2.tearDown(DescriptionSetterWrapper.java:91)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:906)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
	at hudson.model.Run.execute(Run.java:1895)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
	at hudson.model.ResourceController.execute(ResourceController.java:101)
	at hudson.model.Executor.run(Executor.java:442)
Caused by: org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Error processing tokens
	at org.jenkinsci.plugins.tokenmacro.Parser.parse(Parser.java:97)
	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:75)
	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:68)
	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:196)
	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:234)
	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:208)
	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:200)
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper.expand(DescriptionSetterWrapper.java:134)
	... 9 more
Caused by: org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Unrecognized macro 'trigger' in 'Docs can be currently found at http://bit.ly/15LIq6S .

Enjoying the extension? Feel free to make a financial contribution to my work, 
PM me on IRC on irc.esper.net (nick __import__) for more details!

Quick example (place in main.ms):

    ##################################################################################
    # This example will connect the bot to irc.esper.net, using the nickname 'LolBot'
    # and join #commandhelper-testing. Auto-reconnects when there is a connection
    # issue.
    ##################################################################################

    @options = array()
    @options['username'] = 'testbot'
    @options['realname'] = 'Minecraft powered bot'

    irc_create(1)

    if (!irc_info(1)['connected']) {
        console('Connecting...')
        irc_connect(1, 'IRCtest', 'irc.esper.net', @options)
    }

    bind('irc_connection_exception', null, null, @event,
        console(@event['exceptionclass'] . 
            '(' . @event['message'] . ') . 
            Reconnecting...')

        irc_connect(1, 'IRCtest', 'irc.esper.net')
    )

    bind('irc_disconnected', null, null, @event,
        if(!@event['wasClean']) {
            console('Unclean disconnect. Reconnecting...')
            irc_connect(1, 'IRCtest', 'irc.esper.net')
        }
    )

    bind('irc_connected', null, null, @event,
        console('Connected.')
    )

    bind('irc_welcomed', null, null, @event,
        console('Welcomed.')
        irc_join(1, '#commandhelper-testing')
    )

    bind('irc_joined', null, null, @event,
        if (@event['who'] != irc_info(@event['id'])['nickname']) {
            return()
        }

        console('Joined' @event['channel'])
        irc_send_raw(1, 'MODE' @event['channel'])
    )

    bind('irc_msg', null, null, @event,
        ############################
        # Modify this if need be.
        # Defines the character that
        # activates the bot.
        ############################
        @trigchar = '$'

        ##########################
        # Modify this next line!!!
        ##########################
        @allowedNicks = array('__import__', 'LadyCailin')

        if (!array_contains_ic(@allowedNicks, @event['who'])) {
            return()
        }

        @match = reg_match('^' . reg_escape(@trigchar) . '([^ ]+)(\\s+(.*))?$', @event['message'])

        if (@match) {
            @trigger = @match[1]
            @args = @match[3]

            if (@args == '') {
                # This happens if someone says '$trigger ' (ends with a space)
                @args = null
            }

            ###########################
            # Signature for _irc_parse:
            # proc(_irc_parse, @trigger, @args, @match, @event, <code>)
            #
            # return(@val) to have that value spoken back.
            ###########################
            @retn = _irc_parse(@trigger, @args, @match, @event)

            if (@retn) {
                irc_msg(@event['id'], @event['target'], @retn)
            }
        }
    )

You will need to implement _irc_parse in auto_includes.ms, as per the above signature.

An example:

    proc(_irc_parse, @trigger, @args, @match, @event,
        if (@trigger == 'reload') {
            irc_msg(@event['id'], @event['target'], 'Reloaded!')
            run('/reloadaliases -x')

            die()
        }

        if (@trigger == 'eval') {
            if (@args == null) {
                return('You must specify code to evaluate!')
            }

            try(
                @out = eval(@args)
                if (!@out) {
                    @out = '(No output returned)'
                }

                return(@out)
            , @err, 
                return(@err[1])
            )

            return()
        }
    )
'
	at org.jenkinsci.plugins.tokenmacro.Parser.processToken(Parser.java:492)
	at org.jenkinsci.plugins.tokenmacro.Parser.parseNonDelimitedToken(Parser.java:186)
	at org.jenkinsci.plugins.tokenmacro.Parser.parseToken(Parser.java:113)
	at org.jenkinsci.plugins.tokenmacro.Parser.parse(Parser.java:87)
	... 16 more
project=hudson.maven.MavenModuleSet@2e0a11f1[CHIRC]
project.getModules()=[hudson.maven.MavenModule@6811c47e[CHIRC/com.entityreborn:chirc][CHIRC/com.entityreborn:chirc][relativePath:]]
project.getRootModule()=hudson.maven.MavenModule@6811c47e[CHIRC/com.entityreborn:chirc][CHIRC/com.entityreborn:chirc][relativePath:]
Setting project description with contents of file [README.md]
ERROR: Unable to tear down: org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Error processing tokens
org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Unrecognized macro 'trigger' in 'Docs can be currently found at http://bit.ly/15LIq6S .

Enjoying the extension? Feel free to make a financial contribution to my work, 
PM me on IRC on irc.esper.net (nick __import__) for more details!

Quick example (place in main.ms):

    ##################################################################################
    # This example will connect the bot to irc.esper.net, using the nickname 'LolBot'
    # and join #commandhelper-testing. Auto-reconnects when there is a connection
    # issue.
    ##################################################################################

    @options = array()
    @options['username'] = 'testbot'
    @options['realname'] = 'Minecraft powered bot'

    irc_create(1)

    if (!irc_info(1)['connected']) {
        console('Connecting...')
        irc_connect(1, 'IRCtest', 'irc.esper.net', @options)
    }

    bind('irc_connection_exception', null, null, @event,
        console(@event['exceptionclass'] . 
            '(' . @event['message'] . ') . 
            Reconnecting...')

        irc_connect(1, 'IRCtest', 'irc.esper.net')
    )

    bind('irc_disconnected', null, null, @event,
        if(!@event['wasClean']) {
            console('Unclean disconnect. Reconnecting...')
            irc_connect(1, 'IRCtest', 'irc.esper.net')
        }
    )

    bind('irc_connected', null, null, @event,
        console('Connected.')
    )

    bind('irc_welcomed', null, null, @event,
        console('Welcomed.')
        irc_join(1, '#commandhelper-testing')
    )

    bind('irc_joined', null, null, @event,
        if (@event['who'] != irc_info(@event['id'])['nickname']) {
            return()
        }

        console('Joined' @event['channel'])
        irc_send_raw(1, 'MODE' @event['channel'])
    )

    bind('irc_msg', null, null, @event,
        ############################
        # Modify this if need be.
        # Defines the character that
        # activates the bot.
        ############################
        @trigchar = '$'

        ##########################
        # Modify this next line!!!
        ##########################
        @allowedNicks = array('__import__', 'LadyCailin')

        if (!array_contains_ic(@allowedNicks, @event['who'])) {
            return()
        }

        @match = reg_match('^' . reg_escape(@trigchar) . '([^ ]+)(\\s+(.*))?$', @event['message'])

        if (@match) {
            @trigger = @match[1]
            @args = @match[3]

            if (@args == '') {
                # This happens if someone says '$trigger ' (ends with a space)
                @args = null
            }

            ###########################
            # Signature for _irc_parse:
            # proc(_irc_parse, @trigger, @args, @match, @event, <code>)
            #
            # return(@val) to have that value spoken back.
            ###########################
            @retn = _irc_parse(@trigger, @args, @match, @event)

            if (@retn) {
                irc_msg(@event['id'], @event['target'], @retn)
            }
        }
    )

You will need to implement _irc_parse in auto_includes.ms, as per the above signature.

An example:

    proc(_irc_parse, @trigger, @args, @match, @event,
        if (@trigger == 'reload') {
            irc_msg(@event['id'], @event['target'], 'Reloaded!')
            run('/reloadaliases -x')

            die()
        }

        if (@trigger == 'eval') {
            if (@args == null) {
                return('You must specify code to evaluate!')
            }

            try(
                @out = eval(@args)
                if (!@out) {
                    @out = '(No output returned)'
                }

                return(@out)
            , @err, 
                return(@err[1])
            )

            return()
        }
    )
'
	at org.jenkinsci.plugins.tokenmacro.Parser.processToken(Parser.java:492)
	at org.jenkinsci.plugins.tokenmacro.Parser.parseNonDelimitedToken(Parser.java:186)
	at org.jenkinsci.plugins.tokenmacro.Parser.parseToken(Parser.java:113)
	at org.jenkinsci.plugins.tokenmacro.Parser.parse(Parser.java:87)
Caused: org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Error processing tokens
	at org.jenkinsci.plugins.tokenmacro.Parser.parse(Parser.java:97)
	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:75)
	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:68)
	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:196)
	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:234)
	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:208)
	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:200)
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper.expand(DescriptionSetterWrapper.java:134)
Caused: java.lang.RuntimeException
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper.expand(DescriptionSetterWrapper.java:136)
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper.setProjectDescription(DescriptionSetterWrapper.java:110)
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper.access$000(DescriptionSetterWrapper.java:50)
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper$2.tearDown(DescriptionSetterWrapper.java:91)
	at hudson.model.AbstractBuild$AbstractBuildExecution.tearDownBuildEnvironments(AbstractBuild.java:566)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
	at hudson.model.Run.execute(Run.java:1895)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
	at hudson.model.ResourceController.execute(ResourceController.java:101)
	at hudson.model.Executor.run(Executor.java:442)
FATAL: org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Error processing tokens
org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Unrecognized macro 'trigger' in 'Docs can be currently found at http://bit.ly/15LIq6S .

Enjoying the extension? Feel free to make a financial contribution to my work, 
PM me on IRC on irc.esper.net (nick __import__) for more details!

Quick example (place in main.ms):

    ##################################################################################
    # This example will connect the bot to irc.esper.net, using the nickname 'LolBot'
    # and join #commandhelper-testing. Auto-reconnects when there is a connection
    # issue.
    ##################################################################################

    @options = array()
    @options['username'] = 'testbot'
    @options['realname'] = 'Minecraft powered bot'

    irc_create(1)

    if (!irc_info(1)['connected']) {
        console('Connecting...')
        irc_connect(1, 'IRCtest', 'irc.esper.net', @options)
    }

    bind('irc_connection_exception', null, null, @event,
        console(@event['exceptionclass'] . 
            '(' . @event['message'] . ') . 
            Reconnecting...')

        irc_connect(1, 'IRCtest', 'irc.esper.net')
    )

    bind('irc_disconnected', null, null, @event,
        if(!@event['wasClean']) {
            console('Unclean disconnect. Reconnecting...')
            irc_connect(1, 'IRCtest', 'irc.esper.net')
        }
    )

    bind('irc_connected', null, null, @event,
        console('Connected.')
    )

    bind('irc_welcomed', null, null, @event,
        console('Welcomed.')
        irc_join(1, '#commandhelper-testing')
    )

    bind('irc_joined', null, null, @event,
        if (@event['who'] != irc_info(@event['id'])['nickname']) {
            return()
        }

        console('Joined' @event['channel'])
        irc_send_raw(1, 'MODE' @event['channel'])
    )

    bind('irc_msg', null, null, @event,
        ############################
        # Modify this if need be.
        # Defines the character that
        # activates the bot.
        ############################
        @trigchar = '$'

        ##########################
        # Modify this next line!!!
        ##########################
        @allowedNicks = array('__import__', 'LadyCailin')

        if (!array_contains_ic(@allowedNicks, @event['who'])) {
            return()
        }

        @match = reg_match('^' . reg_escape(@trigchar) . '([^ ]+)(\\s+(.*))?$', @event['message'])

        if (@match) {
            @trigger = @match[1]
            @args = @match[3]

            if (@args == '') {
                # This happens if someone says '$trigger ' (ends with a space)
                @args = null
            }

            ###########################
            # Signature for _irc_parse:
            # proc(_irc_parse, @trigger, @args, @match, @event, <code>)
            #
            # return(@val) to have that value spoken back.
            ###########################
            @retn = _irc_parse(@trigger, @args, @match, @event)

            if (@retn) {
                irc_msg(@event['id'], @event['target'], @retn)
            }
        }
    )

You will need to implement _irc_parse in auto_includes.ms, as per the above signature.

An example:

    proc(_irc_parse, @trigger, @args, @match, @event,
        if (@trigger == 'reload') {
            irc_msg(@event['id'], @event['target'], 'Reloaded!')
            run('/reloadaliases -x')

            die()
        }

        if (@trigger == 'eval') {
            if (@args == null) {
                return('You must specify code to evaluate!')
            }

            try(
                @out = eval(@args)
                if (!@out) {
                    @out = '(No output returned)'
                }

                return(@out)
            , @err, 
                return(@err[1])
            )

            return()
        }
    )
'
	at org.jenkinsci.plugins.tokenmacro.Parser.processToken(Parser.java:492)
	at org.jenkinsci.plugins.tokenmacro.Parser.parseNonDelimitedToken(Parser.java:186)
	at org.jenkinsci.plugins.tokenmacro.Parser.parseToken(Parser.java:113)
	at org.jenkinsci.plugins.tokenmacro.Parser.parse(Parser.java:87)
Caused: org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Error processing tokens
	at org.jenkinsci.plugins.tokenmacro.Parser.parse(Parser.java:97)
	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:75)
	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:68)
	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:196)
	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:234)
	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:208)
	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:200)
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper.expand(DescriptionSetterWrapper.java:134)
Caused: java.lang.RuntimeException
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper.expand(DescriptionSetterWrapper.java:136)
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper.setProjectDescription(DescriptionSetterWrapper.java:110)
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper.access$000(DescriptionSetterWrapper.java:50)
	at org.jenkinsCi.plugins.projectDescriptionSetter.DescriptionSetterWrapper$2.tearDown(DescriptionSetterWrapper.java:91)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:906)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
	at hudson.model.Run.execute(Run.java:1895)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
	at hudson.model.ResourceController.execute(ResourceController.java:101)
	at hudson.model.Executor.run(Executor.java:442)
Archiving artifacts
Finished: FAILURE