This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var baseUrl = '/base'; | |
var config = { | |
baseUrl: baseUrl, | |
baseUILib: baseUrl + '/src/www/js/lib', | |
baseAPILib: baseUrl + '/node_modules', | |
fileInclusionTest: /spec\..+\.js$/i | |
}; | |
var allTestFiles = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var KarmaServer = KarmaServer = require('karma').Server; | |
gulp.task('test:www', ['compile:www'], function (done) { | |
new KarmaServer({ | |
configFile: __dirname + '/karma.conf.js', | |
singleRun: true | |
}, done).start(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Import the libaries that we're using. | |
* This is a test of API code, so any libraries | |
* specified in package.json should be available | |
* for import here. | |
*/ | |
import chai = require('chai'); | |
import chaiAsPromised = require("chai-as-promised"); | |
import sinon = require('sinon'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
git clone [email protected]:openstack-infra/jenkins-job-builder.git | |
cd jenkins-job-builder | |
python setup.py install | |
pip install pbr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[job_builder] | |
ignore_cache=True | |
keep_descriptions=False | |
include_path=. | |
recursive=False | |
allow_duplicates=False | |
[jenkins] | |
user=YOUR_USER_NAME | |
password=YOUR_PASSWORD_OR_API_KEY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- job: | |
name: my_hello_world_job | |
parameters: | |
- string: | |
name: Message | |
default: Hello World | |
description: A message to echo | |
builders: | |
- shell: "echo $Message" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo jenkins-jobs update hello_world.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job { | |
name 'hello-world' | |
steps { | |
shell('echo "Hello World!"') | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//IMPORTANT NOTE!!!: Name this file "job-generation.dsl". Github's gist tool uses the file extension to establish syntax highlighting rules | |
@GrabResolver(name="repo.jenkins-ci.org",root='http://repo.jenkins-ci.org/public/') | |
@Grapes([ | |
@Grab(group='org.kohsuke', module='github-api', version='1.59') | |
]) | |
import static hudson.security.ACL.SYSTEM | |
import com.cloudbees.plugins.credentials.CredentialsProvider |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- job: | |
name: job-generator | |
builders: | |
- dsl: | |
script-text: | |
!include-raw hello-world.dsl |