Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Add jenkins2 build scripts. #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

michael-ericson-tanium
Copy link

Add jenkins2 build scripts.

@bwknight877 I mostly copied the scripts from the tanium-libuv branch you showed me but I think I'm missing a few differences here. Let's review together when you get a chance today.

Gruntfile.js Outdated
cmd: function (target) {
var cmd;
if (process.platform === 'win32') {
cmd = 'cd windows\\vs2015 && msbuild yara.sln /t:Rebuild /p:Configuration=Release'

Choose a reason for hiding this comment

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

you prob need to make a distinction between target === 'win32' and target === 'win64' and change the windows build command accordingly

I think its /property:Platform=x64 and /property:Platform=x86 but you'd have to verify in the solution

Copy link

@bwknight877 bwknight877 left a comment

Choose a reason for hiding this comment

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

Minor change for win32/win64, and we'll need Greg to run a rescan of github so Jenkins2 will see this project with a jenkinsfile

description: 'Tanium fork of YARA'
};

var versionPrefix = '3.4.0';

Choose a reason for hiding this comment

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

Gruntfile.js Outdated
} else {
cmd = './build.sh'
}
grunt.log.ok(cmd);

Choose a reason for hiding this comment

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

where does the build output go? need to copy that into ./build so it gets archived and eventually published to artifactory

// default to win64 on windows
return 'win64';
} else if (process.platform === 'linux') {
if (process.platform === 'x64') {

Choose a reason for hiding this comment

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

@bwknight877 looks like we might have confused process.platform and process.arch here.

Choose a reason for hiding this comment

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

yeah, i fixed that in common-libuv and common-yaml just now

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.

2 participants